From 604dbdc53b34c25e53b19e37ab33fc09cef9111e Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 28 May 2024 01:41:38 +0100 Subject: Hotfix broken Portal 5135 autojump The tf_arena_max_streak check turns out not to work on autoload since the client isn't loaded yet so the cvar doesn't exist yet. Using the server-side cvar tf_escort_score_rate appears to do for now. Also bump the zip date again since I'm doing this after midnight :^) --- src/engineapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/engineapi.c') diff --git a/src/engineapi.c b/src/engineapi.c index 768510d..f3c8c6d 100644 --- a/src/engineapi.c +++ b/src/engineapi.c @@ -1,5 +1,5 @@ /* - * Copyright © 2023 Michael Smith + * Copyright © 2024 Michael Smith * Copyright © 2023 Willian Henrique * * Permission to use, copy, modify, and/or distribute this software for any @@ -88,7 +88,7 @@ bool engineapi_init(int pluginver) { // detect p1 for the benefit of specific features if (!GAMETYPE_MATCHES(Portal2) && con_findcmd("upgrade_portalgun")) { _gametype_tag |= _gametype_tag_Portal1; - if (!con_findvar("tf_arena_max_streak")) { + if (!con_findvar("tf_escort_score_rate")) { _gametype_tag |= _gametype_tag_Portal1_3420; } } -- cgit v1.2.3