diff options
author | aap <aap@papnet.eu> | 2021-01-02 20:30:12 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-02 20:30:12 +0100 |
commit | 0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf (patch) | |
tree | 2c8584344263fd2f06b6cad574004f601e3adb2f /src/vehicles/Vehicle.cpp | |
parent | "clarification" of handling code (diff) | |
download | re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.gz re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.bz2 re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.lz re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.xz re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.tar.zst re3-0d05be4e31a40d7ed84f5f0d59b7aee7cd40dfaf.zip |
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-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 b02d1152..465d9a9e 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -659,7 +659,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); } } |