From dc540372be9da686a3087843ae4ae5f038a3a9a0 Mon Sep 17 00:00:00 2001 From: Hayden K Date: Fri, 7 Feb 2025 14:22:37 -0500 Subject: Rename L4D2_2147plus gametype tag to L4D2_2125plus Turns out the cvar we use to detect 2147 was actually added in 2125. Since renaming it doesn't currently break anything (and 2125 was a fairly notable code shuffling update, given it was the first update with a native Linux build of the game), it makes most sense to just do this. --- src/fastfwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fastfwd.c') 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 * Copyright © 2025 Michael Smith * Copyright © 2023 Willian Henrique + * Copyright © 2025 Hayden K * * 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; -- cgit v1.2.3-54-g00ecf