diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-16 12:40:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 12:40:20 +0200 |
commit | 81e711517d30846b0387a01a8d40d40ea9ae47c1 (patch) | |
tree | 8215b0cc9170c387f504cf58a4c6bcb5cbc37f07 /src/vehicles | |
parent | remove some unneeded plane paths for the moment; also different exe icon (diff) | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.gz re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.bz2 re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.lz re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.xz re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.zst re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.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 16401008..7c02f3ee 100644 --- a/src/vehicles/CarGen.cpp +++ b/src/vehicles/CarGen.cpp @@ -186,7 +186,7 @@ bool CCarGenerator::CheckForBlockage(int32 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 && - m_vecPos.z + pColModel->boundingBox.max.z < pEntities[i]->GetPosition().z + pEntities[i]->GetColModel()->boundingBox.min.z - 1.0f) { + m_vecPos.z + pColModel->boundingBox.max.z > pEntities[i]->GetPosition().z + pEntities[i]->GetColModel()->boundingBox.min.z - 1.0f) { m_bIsBlocking = true; return true; } |