summaryrefslogtreecommitdiffstats
path: root/src/core/World.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-05-15 20:30:57 +0200
committerGitHub <noreply@github.com>2020-05-15 20:30:57 +0200
commit8ff72f0728acbba293580042135f43268fa340fe (patch)
tree23cb65ca52efe5e964423ee50eff0e60ce8e155a /src/core/World.cpp
parentCPedIK (diff)
parentWeapon layer in Peds (diff)
downloadre3-8ff72f0728acbba293580042135f43268fa340fe.tar
re3-8ff72f0728acbba293580042135f43268fa340fe.tar.gz
re3-8ff72f0728acbba293580042135f43268fa340fe.tar.bz2
re3-8ff72f0728acbba293580042135f43268fa340fe.tar.lz
re3-8ff72f0728acbba293580042135f43268fa340fe.tar.xz
re3-8ff72f0728acbba293580042135f43268fa340fe.tar.zst
re3-8ff72f0728acbba293580042135f43268fa340fe.zip
Diffstat (limited to 'src/core/World.cpp')
-rw-r--r--src/core/World.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index 493ce042..8c69d846 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -2048,9 +2048,12 @@ CWorld::Process(void)
movingPed->EnteringCar()) {
CVehicle *movingCar = movingPed->m_pMyVehicle;
if(movingCar) {
+#ifdef GTA_TRAIN
if(movingCar->IsTrain()) {
movingPed->SetPedPositionInTrain();
- } else {
+ } else
+#endif
+ {
switch(movingPed->m_nPedState) {
case PED_ENTER_CAR:
case PED_CARJACK: movingPed->EnterCar(); break;
@@ -2235,4 +2238,5 @@ CWorld::UseDetonator(CEntity *pEntity)
pVehicle->m_pBlowUpEntity->RegisterReference(&pVehicle->m_pBlowUpEntity);
}
}
+ CProjectileInfo::RemoveDetonatorProjectiles();
}