1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-10 18:09:16 +00:00

better fix

This commit is contained in:
Nikolay Korolev 2020-12-12 21:06:14 +03:00
parent b3f97cdce4
commit bfe382c315

View file

@ -2858,9 +2858,11 @@ void CCarCtrl::SteerAICarWithPhysicsFollowPath(CVehicle* pVehicle, float* pSwerv
case DRIVINGSTYLE_STOP_FOR_CARS_IGNORE_LIGHTS:
speedStyleMultiplier = FindMaximumSpeedForThisCarInTraffic(pVehicle);
#ifdef FIX_BUGS
if (pVehicle->AutoPilot.m_nCruiseSpeed != 0)
#endif
if (pVehicle->AutoPilot.GetCruiseSpeed() != 0)
speedStyleMultiplier /= pVehicle->AutoPilot.GetCruiseSpeed();
#else
speedStyleMultiplier /= pVehicle->AutoPilot.m_nCruiseSpeed;
#endif
break;
default:
speedStyleMultiplier = 1.0f;