summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-05 20:58:39 +0100
committeraap <aap@papnet.eu>2021-01-05 20:58:39 +0100
commita6409fb44550870637ece43b0b5fe201ef5d7f1d (patch)
tree254bb656f968c48dbf17467bd37833411eccf9c1
parentduh (diff)
downloadre3-a6409fb44550870637ece43b0b5fe201ef5d7f1d.tar
re3-a6409fb44550870637ece43b0b5fe201ef5d7f1d.tar.gz
re3-a6409fb44550870637ece43b0b5fe201ef5d7f1d.tar.bz2
re3-a6409fb44550870637ece43b0b5fe201ef5d7f1d.tar.lz
re3-a6409fb44550870637ece43b0b5fe201ef5d7f1d.tar.xz
re3-a6409fb44550870637ece43b0b5fe201ef5d7f1d.tar.zst
re3-a6409fb44550870637ece43b0b5fe201ef5d7f1d.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PedAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp
index 43592d80..3dc64e2e 100644
--- a/src/peds/PedAI.cpp
+++ b/src/peds/PedAI.cpp
@@ -2152,7 +2152,7 @@ CPed::ReactToAttack(CEntity *attacker)
CCarCtrl::SwitchVehicleToRealPhysics(m_pMyVehicle);
m_pMyVehicle->AutoPilot.m_nDrivingStyle = DRIVINGSTYLE_AVOID_CARS;
- m_pMyVehicle->AutoPilot.m_nCruiseSpeed = GAME_SPEED_TO_CARAI_SPEED * m_pMyVehicle->pHandling->Transmission.fUnkMaxVelocity;
+ m_pMyVehicle->AutoPilot.m_nCruiseSpeed = GAME_SPEED_TO_CARAI_SPEED * m_pMyVehicle->pHandling->Transmission.fMaxCruiseVelocity;
m_pMyVehicle->SetStatus(STATUS_PHYSICS);
}
} else