summaryrefslogtreecommitdiffstats
path: root/src/control/CarAI.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-08 10:41:39 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-08 10:41:39 +0100
commit236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e (patch)
treed5afc2aeff0ae8c1152fe999fa3dbd6d9b86e401 /src/control/CarAI.cpp
parentsync with upstream (diff)
downloadre3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.gz
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.bz2
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.lz
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.xz
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.tar.zst
re3-236b3b1c2b6d6480acbe50f6f3c5f16c8208a95e.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp
index ed7f432e..06438e0a 100644
--- a/src/control/CarAI.cpp
+++ b/src/control/CarAI.cpp
@@ -80,7 +80,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle)
pVehicle->SetStatus(STATUS_PHYSICS);
CColPoint colPoint;
CEntity* pEntity;
- if (pVehicle->m_randomSeed & 0x3F == CTimer::GetFrameCounter() & 0x3F &&
+ if ((pVehicle->m_randomSeed & 0x3F) == (CTimer::GetFrameCounter() & 0x3F) &&
!CWorld::ProcessVerticalLine(pVehicle->GetPosition(), -2.0f, colPoint, pEntity, true, false, false, false, true, false, nil)) {
debug("FLOATING CAR TURNED INTO PHYSICS CAR!\n");
pVehicle->SetStatus(STATUS_PHYSICS);