diff options
author | aap <aap@papnet.eu> | 2021-01-02 20:30:16 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-02 20:30:16 +0100 |
commit | 57677b7b55e6204c0b78db935d696c21e880f0e6 (patch) | |
tree | 964a03852bdd8a697c881d90b72d2eecf79868e9 /src/vehicles/Vehicle.cpp | |
parent | "clarification" of handling code (diff) | |
download | re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.gz re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.bz2 re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.lz re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.xz re3-57677b7b55e6204c0b78db935d696c21e880f0e6.tar.zst re3-57677b7b55e6204c0b78db935d696c21e880f0e6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index c9a77193..d0f92a3c 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -1232,7 +1232,7 @@ CVehicle::InflictDamage(CEntity *damagedBy, eWeaponType weaponType, float damage if (m_randomSeed < DAMAGE_FLEE_IN_CAR_PROBABILITY_VALUE) { CCarCtrl::SwitchVehicleToRealPhysics(this); AutoPilot.m_nDrivingStyle = DRIVINGSTYLE_AVOID_CARS; - AutoPilot.m_nCruiseSpeed = GAME_SPEED_TO_CARAI_SPEED * pHandling->Transmission.fUnkMaxVelocity; + AutoPilot.m_nCruiseSpeed = GAME_SPEED_TO_CARAI_SPEED * pHandling->Transmission.fMaxCruiseVelocity; SetStatus(STATUS_PHYSICS); } } |