summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-03-01 02:43:30 +0100
committereray orçunus <erayorcunus@gmail.com>2020-03-01 02:44:58 +0100
commitae523a09a7c12ff3c1fd9cb61e741cf09702b3fe (patch)
treeaf779a144813d519e312398ba77cfdbeb9260420 /src/control/Script.cpp
parentMerge pull request #338 from erorcun/erorcun (diff)
downloadre3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.gz
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.bz2
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.lz
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.xz
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.tar.zst
re3-ae523a09a7c12ff3c1fd9cb61e741cf09702b3fe.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 4ef3821e..5daf12f5 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -2815,7 +2815,11 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
pVehicle->AutoPilot.m_nCarMission = MISSION_CRUISE;
pVehicle->bEngineOn = true;
pPed->bUsesCollision = false;
+#ifdef FIX_BUGS
+ AnimationId anim = pVehicle->GetDriverAnim();
+#else
AnimationId anim = pVehicle->bLowVehicle ? ANIM_CAR_LSIT : ANIM_CAR_SIT;
+#endif
pPed->m_pVehicleAnim = CAnimManager::BlendAnimation(pPed->GetClump(), ASSOCGRP_STD, anim, 100.0f);
pPed->StopNonPartialAnims();
pPed->m_nZoneLevel = CTheZones::GetLevelFromPosition(pPed->GetPosition());
@@ -4009,7 +4013,11 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
pPed->SetPedState(PED_DRIVING);
pVehicle->m_status = STATUS_PHYSICS;
pPed->bUsesCollision = false;
+#ifdef FIX_BUGS
+ AnimationId anim = pVehicle->GetDriverAnim();
+#else
AnimationId anim = pVehicle->bLowVehicle ? ANIM_CAR_LSIT : ANIM_CAR_SIT;
+#endif
pPed->m_pVehicleAnim = CAnimManager::BlendAnimation(pPed->GetClump(), ASSOCGRP_STD, anim, 100.0f);
pPed->StopNonPartialAnims();
pPed->m_nZoneLevel = CTheZones::GetLevelFromPosition(pPed->GetPosition());