diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-12 21:05:12 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-12 21:05:12 +0100 |
commit | 01c95378e1cffe7ef09f44d992a0144d9a5691a4 (patch) | |
tree | 6e797ece1b38c9e86f9d7af6b97cc39fa897347c /src/peds/PedAI.cpp | |
parent | fixed a bug (diff) | |
download | re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.gz re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.bz2 re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.lz re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.xz re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.tar.zst re3-01c95378e1cffe7ef09f44d992a0144d9a5691a4.zip |
Diffstat (limited to '')
-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: |