summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-15 22:36:21 +0200
committeraap <aap@papnet.eu>2020-04-15 22:36:21 +0200
commitafce2e1bb3212a01efe0205313cf5d632eee8a20 (patch)
treee9602e11ba49ad3cd35c0af4355eec330d73aa8b /src/modelinfo
parentimplemented most of librw wrapper (diff)
parentMerge pull request #440 from Fire-Head/master (diff)
downloadre3-afce2e1bb3212a01efe0205313cf5d632eee8a20.tar
re3-afce2e1bb3212a01efe0205313cf5d632eee8a20.tar.gz
re3-afce2e1bb3212a01efe0205313cf5d632eee8a20.tar.bz2
re3-afce2e1bb3212a01efe0205313cf5d632eee8a20.tar.lz
re3-afce2e1bb3212a01efe0205313cf5d632eee8a20.tar.xz
re3-afce2e1bb3212a01efe0205313cf5d632eee8a20.tar.zst
re3-afce2e1bb3212a01efe0205313cf5d632eee8a20.zip
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/ModelIndices.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h
index 20d1b7f3..309fa1bb 100644
--- a/src/modelinfo/ModelIndices.h
+++ b/src/modelinfo/ModelIndices.h
@@ -490,3 +490,10 @@ IsPoliceVehicleModel(int16 id)
id == MI_POLICE ||
id == MI_ENFORCER;
}
+
+inline bool
+IsExplosiveThingModel(int16 id)
+{
+ return id == MI_EXPLODINGBARREL ||
+ id == MI_PETROLPUMP;
+} \ No newline at end of file