diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-08-11 07:35:01 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-08-11 07:35:01 +0200 |
commit | d7a28c4d2b80a82646f15b4fdbce7a26aeb2eaa8 (patch) | |
tree | 6e30f138b2ca1cdc015a30205063b8c18cbc8cb0 /src/vehicles | |
parent | Add sprite to the waypoint marker (diff) | |
download | re3-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 'src/vehicles')
-rw-r--r-- | src/vehicles/CarGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp index 29d0c5c7..bce8cdab 100644 --- a/src/vehicles/CarGen.cpp +++ b/src/vehicles/CarGen.cpp @@ -202,7 +202,7 @@ bool CCarGenerator::CheckForBlockage(int32 mi) { int16 entities; CEntity* pEntities[8]; - CColModel* pColModel = CModelInfo::GetModelInfo(mi)->GetColModel(); + CColModel* pColModel = CModelInfo::GetColModel(mi); CWorld::FindObjectsKindaColliding(CVector(m_vecPos), pColModel->boundingSphere.radius, 1, &entities, 8, pEntities, false, true, true, false, false); for (int i = 0; i < entities; i++) { if (m_vecPos.z + pColModel->boundingBox.min.z < pEntities[i]->GetPosition().z + pEntities[i]->GetColModel()->boundingBox.max.z + 1.0f && |