diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-01 14:28:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 14:28:43 +0200 |
commit | eda50bc32bafaea788def2f00f4ac036329dd46c (patch) | |
tree | ef0200e6f8ce0e24ef52ccb8b70c32c1cbdb35f3 /src/control/CarAI.cpp | |
parent | little fix (diff) | |
download | re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.gz re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.bz2 re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.lz re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.xz re3-eda50bc32bafaea788def2f00f4ac036329dd46c.tar.zst re3-eda50bc32bafaea788def2f00f4ac036329dd46c.zip |
Diffstat (limited to 'src/control/CarAI.cpp')
-rw-r--r-- | src/control/CarAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarAI.cpp b/src/control/CarAI.cpp index b3fc85ae..41dcaa59 100644 --- a/src/control/CarAI.cpp +++ b/src/control/CarAI.cpp @@ -381,7 +381,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle) if (flatSpeed < SQR(0.018f) && CTimer::GetTimeInMilliseconds() - pVehicle->AutoPilot.m_nAntiReverseTimer > 2000){ pVehicle->AutoPilot.m_nTempAction = TEMPACT_REVERSE; if (pVehicle->AutoPilot.m_nCarMission != MISSION_NONE && - pVehicle->AutoPilot.m_nCarMission != MISSION_CRUISE || pVehicle->VehicleCreatedBy == RANDOM_VEHICLE) + pVehicle->AutoPilot.m_nCarMission != MISSION_CRUISE || pVehicle->VehicleCreatedBy == MISSION_VEHICLE) pVehicle->AutoPilot.m_nTimeTempAction = CTimer::GetTimeInMilliseconds() + 1500; else pVehicle->AutoPilot.m_nTimeTempAction = CTimer::GetTimeInMilliseconds() + 750; @@ -406,7 +406,7 @@ void CCarAI::UpdateCarAI(CVehicle* pVehicle) pVehicle->AutoPilot.m_nTimeTempAction = CTimer::GetTimeInMilliseconds() + 400; } } - if (pVehicle->GetUp().z < 0.7f){ + if (pVehicle->GetUp().z < -0.7f){ pVehicle->AutoPilot.m_nTempAction = TEMPACT_WAIT; pVehicle->AutoPilot.m_nTimeTempAction = CTimer::GetTimeInMilliseconds() + 1000; } |