Merge pull request #547 from Nick007J/master

a few bugfixes
This commit is contained in:
aap
2020-05-14 14:39:23 +02:00
committed by GitHub
4 changed files with 16 additions and 0 deletions

View File

@ -16166,7 +16166,11 @@ CPed::SeekCar(void)
}
if (dest.x == 0.0f && dest.y == 0.0f) {
#ifdef FIX_BUGS
if ((!IsPlayer() && CharCreatedBy != MISSION_CHAR) || vehToSeek->VehicleCreatedBy != MISSION_VEHICLE || vehToSeek->pDriver || !vehToSeek->CanPedOpenLocks(this)) {
#else
if ((!IsPlayer() && CharCreatedBy != MISSION_CHAR) || vehToSeek->VehicleCreatedBy != MISSION_VEHICLE || vehToSeek->pDriver) {
#endif
RestorePreviousState();
if (IsPlayer()) {
ClearObjective();