Merge pull request #315 from Nick007J/master

fixed ai bug
This commit is contained in:
Nikolay Korolev 2020-02-02 03:22:00 +03:00 committed by GitHub
commit a72e71f265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5625,7 +5625,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command)
pVehicle->AutoPilot.m_nCarMission = MISSION_GOTOCOORDS_ACCURATE;
pVehicle->m_status = STATUS_PHYSICS;
pVehicle->bEngineOn = true;
pVehicle->AutoPilot.m_nCruiseSpeed = min(6, pVehicle->AutoPilot.m_nCruiseSpeed);
pVehicle->AutoPilot.m_nCruiseSpeed = max(6, pVehicle->AutoPilot.m_nCruiseSpeed);
pVehicle->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
return 0;
}