aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engineapi.c3
-rw-r--r--src/fastfwd.c3
-rw-r--r--src/gametype.h3
-rw-r--r--src/l4daddon.c2
4 files changed, 7 insertions, 4 deletions
diff --git a/src/engineapi.c b/src/engineapi.c
index a8f4167..cc5f2cf 100644
--- a/src/engineapi.c
+++ b/src/engineapi.c
@@ -1,6 +1,7 @@
/*
* Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
+ * Copyright © 2025 Hayden K <imaciidz@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -106,7 +107,7 @@ bool engineapi_init(int pluginver) {
if (GAMETYPE_MATCHES(L4D2)) {
if (con_findvar("sv_zombie_touch_trigger_delay")) {
- _gametype_tag |= _gametype_tag_L4D2_2147plus;
+ _gametype_tag |= _gametype_tag_L4D2_2125plus;
}
if (con_findvar("director_cs_weapon_spawn_chance")) {
_gametype_tag |= _gametype_tag_TheLastStand;
diff --git a/src/fastfwd.c b/src/fastfwd.c
index 7378b04..fa45beb 100644
--- a/src/fastfwd.c
+++ b/src/fastfwd.c
@@ -2,6 +2,7 @@
* Copyright © 2023 Matthew Wozniak <sirtomato999@gmail.com>
* Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
+ * Copyright © 2025 Hayden K <imaciidz@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -221,7 +222,7 @@ INIT {
errmsg_errorx("couldn't find FrameUpdate function");
return FEAT_INCOMPAT;
}
- if_cold (!(func = find_floatcall(func, GAMETYPE_MATCHES(L4D2_2147plus) ?
+ if_cold (!(func = find_floatcall(func, GAMETYPE_MATCHES(L4D2_2125plus) ?
2 : 1, "CHostState::State_Run"))) {
errmsg_errorx("couldn't find State_Run function");
return FEAT_INCOMPAT;
diff --git a/src/gametype.h b/src/gametype.h
index a6d6b0c..98d360a 100644
--- a/src/gametype.h
+++ b/src/gametype.h
@@ -1,6 +1,7 @@
/*
* Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
+ * Copyright © 2025 Hayden K <imaciidz@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -53,7 +54,7 @@ extern u32 _gametype_tag;
/* games needing version-specific stuff */
#define _gametype_tag_Portal1_3420 (1 << 17)
-#define _gametype_tag_L4D2_2147plus (1 << 18)
+#define _gametype_tag_L4D2_2125plus (1 << 18)
#define _gametype_tag_TheLastStand (1 << 19) /* The JAiZ update */
/* Matches for any multiple possible tags */
diff --git a/src/l4daddon.c b/src/l4daddon.c
index 19c7a2f..30f68eb 100644
--- a/src/l4daddon.c
+++ b/src/l4daddon.c
@@ -35,7 +35,7 @@
#include "x86util.h"
FEATURE("Left 4 Dead 2 addon bugfixes")
-GAMESPECIFIC(L4D2_2147plus)
+GAMESPECIFIC(L4D2_2125plus)
REQUIRE_GAMEDATA(vtidx_ManageAddonsForActiveSession)
REQUIRE_GLOBAL(engclient)