summaryrefslogtreecommitdiffstats
path: root/src/core/World.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-11 07:35:01 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-11 07:35:01 +0200
commitd7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8 (patch)
tree6e30f138b2ca1cdc015a30205063b8c18cbc8cb0 /src/core/World.cpp
parentAdd sprite to the waypoint marker (diff)
downloadre3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.gz
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.bz2
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.lz
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.xz
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.tar.zst
re3-d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8.zip
Diffstat (limited to '')
-rw-r--r--src/core/World.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index 841aab40..549c2cc0 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -365,7 +365,7 @@ CWorld::ProcessLineOfSightSectorList(CPtrList &list, const CColLine &line, CColP
colmodel = nil;
} else if(e->bUsesCollision)
- colmodel = CModelInfo::GetModelInfo(e->GetModelIndex())->GetColModel();
+ colmodel = CModelInfo::GetColModel(e->GetModelIndex());
if(colmodel && CCollision::ProcessLineOfSight(line, e->GetMatrix(), *colmodel, point, mindist,
ignoreSeeThrough, ignoreShootThrough))
@@ -465,7 +465,7 @@ CWorld::ProcessVerticalLineSectorList(CPtrList &list, const CColLine &line, CCol
if(e->m_scanCode != GetCurrentScanCode() && e->bUsesCollision) {
e->m_scanCode = GetCurrentScanCode();
- colmodel = CModelInfo::GetModelInfo(e->GetModelIndex())->GetColModel();
+ colmodel = CModelInfo::GetColModel(e->GetModelIndex());
if(CCollision::ProcessVerticalLine(line, e->GetMatrix(), *colmodel, point, mindist,
ignoreSeeThrough, false, poly))
entity = e;
@@ -666,7 +666,7 @@ CWorld::GetIsLineOfSightSectorListClear(CPtrList &list, const CColLine &line, bo
if(e != pIgnoreEntity && !(ignoreSomeObjects && CameraToIgnoreThisObject(e))) {
- colmodel = CModelInfo::GetModelInfo(e->GetModelIndex())->GetColModel();
+ colmodel = CModelInfo::GetColModel(e->GetModelIndex());
if(CCollision::TestLineOfSight(line, e->GetMatrix(), *colmodel, ignoreSeeThrough, false))
return false;
@@ -971,7 +971,7 @@ CWorld::TestSphereAgainstSectorList(CPtrList &list, CVector spherePos, float rad
float distance = diff.Magnitude();
if(e->GetBoundRadius() + radius > distance) {
- CColModel *eCol = CModelInfo::GetModelInfo(e->GetModelIndex())->GetColModel();
+ CColModel *eCol = CModelInfo::GetColModel(e->GetModelIndex());
int collidedSpheres =
CCollision::ProcessColModels(sphereMat, OurColModel, e->GetMatrix(), *eCol,
gaTempSphereColPoints, nil, nil);