mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 22:59:02 +00:00
fixed a bug
This commit is contained in:
parent
78718700f9
commit
229b8f304a
1 changed files with 5 additions and 1 deletions
|
@ -2856,7 +2856,11 @@ void CCarCtrl::SteerAICarWithPhysicsFollowPath(CVehicle* pVehicle, float* pSwerv
|
||||||
case DRIVINGSTYLE_STOP_FOR_CARS:
|
case DRIVINGSTYLE_STOP_FOR_CARS:
|
||||||
case DRIVINGSTYLE_SLOW_DOWN_FOR_CARS:
|
case DRIVINGSTYLE_SLOW_DOWN_FOR_CARS:
|
||||||
case DRIVINGSTYLE_STOP_FOR_CARS_IGNORE_LIGHTS:
|
case DRIVINGSTYLE_STOP_FOR_CARS_IGNORE_LIGHTS:
|
||||||
speedStyleMultiplier = FindMaximumSpeedForThisCarInTraffic(pVehicle) / pVehicle->AutoPilot.m_nCruiseSpeed;
|
speedStyleMultiplier = FindMaximumSpeedForThisCarInTraffic(pVehicle);
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
if (pVehicle->AutoPilot.m_nCruiseSpeed != 0)
|
||||||
|
#endif
|
||||||
|
speedStyleMultiplier /= pVehicle->AutoPilot.m_nCruiseSpeed;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
speedStyleMultiplier = 1.0f;
|
speedStyleMultiplier = 1.0f;
|
||||||
|
|
Loading…
Reference in a new issue