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 ++-- tools/mkbindist.bat | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } } diff --git a/tools/mkbindist.bat b/tools/mkbindist.bat index 7d94714..b9512cc 100644 --- a/tools/mkbindist.bat +++ b/tools/mkbindist.bat @@ -21,8 +21,8 @@ md TEMP-%name% || exit /B copy sst.dll TEMP-%name%\sst.dll || exit /B copy dist\LICENCE.windows TEMP-%name%\LICENCE || exit /B :: using midnight on release day to make zip deterministic! change on next release! -powershell (Get-Item TEMP-%name%\sst.dll).LastWriteTime = new-object DateTime 2024, 5, 27, 0, 0, 0 -powershell (Get-Item TEMP-%name%\LICENCE).LastWriteTime = new-object DateTime 2024, 5, 27, 0, 0, 0 +powershell (Get-Item TEMP-%name%\sst.dll).LastWriteTime = new-object DateTime 2024, 5, 28, 0, 0, 0 +powershell (Get-Item TEMP-%name%\LICENCE).LastWriteTime = new-object DateTime 2024, 5, 28, 0, 0, 0 pushd TEMP-%name% "%SEVENZIP%" a -mtc=off %name%.zip sst.dll LICENCE || exit /B move %name%.zip ..\release\%name%.zip -- cgit v1.2.3