diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2021-01-31 21:06:38 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2021-01-31 21:06:38 +0100 |
commit | 3d4791f2915a5b1f38c34a0cf01e0dffc588af8c (patch) | |
tree | f6a510c62b8322a11292acafbbc266d1c2c466c2 /src/peds/Ped.cpp | |
parent | First batch of fixes (CallAndMessage) (diff) | |
download | re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.gz re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.bz2 re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.lz re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.xz re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.tar.zst re3-3d4791f2915a5b1f38c34a0cf01e0dffc588af8c.zip |
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r-- | src/peds/Ped.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index a498e251..87e77ef3 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -4348,15 +4348,13 @@ CPed::PedSetDraggedOutCarCB(CAnimBlendAssociation *dragAssoc, void *arg) } #endif -#ifdef FIX_BUGS - if(dragAssoc) -#endif - if(quickJackedAssoc) { - dragAssoc->SetDeleteCallback(PedSetQuickDraggedOutCarPositionCB, ped); - } else { - dragAssoc->SetDeleteCallback(PedSetDraggedOutCarPositionCB, ped); - if(ped->CanSetPedState()) CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_GETUP1, 1000.0f); - } + if (quickJackedAssoc) { + dragAssoc->SetDeleteCallback(PedSetQuickDraggedOutCarPositionCB, ped); + } else { + dragAssoc->SetDeleteCallback(PedSetDraggedOutCarPositionCB, ped); + if (ped->CanSetPedState()) + CAnimManager::BlendAnimation(ped->GetClump(), ASSOCGRP_STD, ANIM_GETUP1, 1000.0f); + } ped->ReplaceWeaponWhenExitingVehicle(); |