summaryrefslogtreecommitdiffstats
path: root/src/core/World.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-30 12:53:51 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-30 12:55:00 +0100
commita0c5d75f8350387e48aba997b154614920846247 (patch)
tree71640b1f045202c157f365657184805ee452870a /src/core/World.cpp
parentMerge pull request #998 from IlDucci/lcs (diff)
downloadre3-a0c5d75f8350387e48aba997b154614920846247.tar
re3-a0c5d75f8350387e48aba997b154614920846247.tar.gz
re3-a0c5d75f8350387e48aba997b154614920846247.tar.bz2
re3-a0c5d75f8350387e48aba997b154614920846247.tar.lz
re3-a0c5d75f8350387e48aba997b154614920846247.tar.xz
re3-a0c5d75f8350387e48aba997b154614920846247.tar.zst
re3-a0c5d75f8350387e48aba997b154614920846247.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 eccbcd89..da1c58b2 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -2218,8 +2218,12 @@ CWorld::UseDetonator(CEntity *pEntity)
{
int32 i = CPools::GetVehiclePool()->GetSize();
while(--i >= 0) {
+#ifdef FIX_BUGS
+ CVehicle* pVehicle = CPools::GetVehiclePool()->GetSlot(i);
+#else
CAutomobile *pVehicle = (CAutomobile *)CPools::GetVehiclePool()->GetSlot(i);
- if(pVehicle && !pVehicle->m_vehType && pVehicle->m_bombType == CARBOMB_REMOTE &&
+#endif
+ if(pVehicle && pVehicle->m_bombType == CARBOMB_REMOTE &&
pVehicle->m_pBombRigger == pEntity) {
pVehicle->m_bombType = CARBOMB_NONE;
pVehicle->m_nBombTimer = 500;