summaryrefslogtreecommitdiffhomepage
path: root/src/engineapi.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-11-26 19:48:46 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2023-11-26 19:49:47 +0000
commit1371abb0812f1adda0d4eeb49cba549ac0456eeb (patch)
tree1b683ff5cfd59e3db842bf944f89be9df021df9a /src/engineapi.c
parent464c9398ae49d8faae46f81fb7040155408858f7 (diff)
Make L4D2 2147 gametype include all later versions
Diffstat (limited to 'src/engineapi.c')
-rw-r--r--src/engineapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engineapi.c b/src/engineapi.c
index 6cb67d2..fe34f64 100644
--- a/src/engineapi.c
+++ b/src/engineapi.c
@@ -94,12 +94,12 @@ bool engineapi_init(int pluginver) {
}
if (GAMETYPE_MATCHES(L4D2)) {
+ if (con_findvar("sv_zombie_touch_trigger_delay")) {
+ _gametype_tag |= _gametype_tag_L4D2_2147plus;
+ }
if (con_findvar("director_cs_weapon_spawn_chance")) {
_gametype_tag |= _gametype_tag_TheLastStand;
}
- else if (con_findvar("sv_zombie_touch_trigger_delay")) {
- _gametype_tag |= _gametype_tag_L4D2_2147;
- }
}
gamedata_init();