diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-12 23:05:12 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-12 23:05:12 +0300 |
commit | 01c95378e1cffe7ef09f44d992a0144d9a5691a4 (patch) | |
tree | 6e797ece1b38c9e86f9d7af6b97cc39fa897347c /src/peds | |
parent | 82c40b73ca4a4e67e0e53a34caac546f012fe54d (diff) |
fixed some replay bugs
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/PedAI.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp index 62b27134..367c876c 100644 --- a/src/peds/PedAI.cpp +++ b/src/peds/PedAI.cpp @@ -2990,9 +2990,15 @@ CPed::PedAnimStepOutCarCB(CAnimBlendAssociation* animAssoc, void* arg) } if (ped->bFleeAfterExitingCar || ped->bGonnaKillTheCarJacker) { - // POTENTIAL BUG? Why DOOR_FRONT_LEFT instead of door variable? or vice versa? +#ifdef FIX_BUGS + if (!veh->IsDoorMissing(door)) + ((CAutomobile*)veh)->Damage.SetDoorStatus(door, DOOR_STATUS_SWINGING); + PedSetOutCarCB(nil, ped); + return; +#else if (!veh->IsDoorMissing(door)) ((CAutomobile*)veh)->Damage.SetDoorStatus(DOOR_FRONT_LEFT, DOOR_STATUS_SWINGING); +#endif } else { switch (door) { case DOOR_FRONT_LEFT: |