diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2023-11-26 19:48:46 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2023-11-26 19:49:47 +0000 |
commit | 1371abb0812f1adda0d4eeb49cba549ac0456eeb (patch) | |
tree | 1b683ff5cfd59e3db842bf944f89be9df021df9a | |
parent | 464c9398ae49d8faae46f81fb7040155408858f7 (diff) |
Make L4D2 2147 gametype include all later versions
-rw-r--r-- | src/engineapi.c | 6 | ||||
-rw-r--r-- | src/gametype.h | 6 |
2 files changed, 6 insertions, 6 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(); diff --git a/src/gametype.h b/src/gametype.h index ad6d67d..81b860a 100644 --- a/src/gametype.h +++ b/src/gametype.h @@ -51,9 +51,9 @@ extern u64 _gametype_tag; #define _gametype_tag_SrvDLL005 (1 << 15) // mostly everything else, it seems /* games needing version-specific stuff */ -#define _gametype_tag_Portal1_3420 (1 << 16) -#define _gametype_tag_L4D2_2147 (1 << 17) -#define _gametype_tag_TheLastStand (1 << 18) /* The JAiZ update */ +#define _gametype_tag_Portal1_3420 (1 << 16) +#define _gametype_tag_L4D2_2147plus (1 << 17) +#define _gametype_tag_TheLastStand (1 << 18) /* The JAiZ update */ /* Matches for any multiple possible tags */ #define _gametype_tag_L4D (_gametype_tag_L4D1 | _gametype_tag_L4D2) |