summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-08 14:34:02 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-08 14:34:02 +0200
commit88b4c7b50b032f06510fec278babe7502cd85d64 (patch)
treea3696b405ab314eb845766c57f4c3e941753c3d5 /src/weapons
parentMerge pull request #1266 from Nick007J/miami (diff)
parentCVehicle fixes and cleanup (diff)
downloadre3-88b4c7b50b032f06510fec278babe7502cd85d64.tar
re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.gz
re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.bz2
re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.lz
re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.xz
re3-88b4c7b50b032f06510fec278babe7502cd85d64.tar.zst
re3-88b4c7b50b032f06510fec278babe7502cd85d64.zip
Diffstat (limited to 'src/weapons')
-rw-r--r--src/weapons/Weapon.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index 8328067f..c0319a11 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -3163,7 +3163,11 @@ CWeapon::HitsGround(CEntity *holder, CVector *fireSource, CEntity *aimingTo)
void
CWeapon::BlowUpExplosiveThings(CEntity *thing)
{
+#ifdef FIX_BUGS
+ if ( thing && thing->IsObject() )
+#else
if ( thing )
+#endif
{
CObject *object = (CObject*)thing;
int32 mi = object->GetModelIndex();