summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2024-05-28 01:41:38 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2024-05-28 01:44:59 +0100
commit604dbdc53b34c25e53b19e37ab33fc09cef9111e (patch)
tree8e804cfce604a4c8b0b07460bf3c1d00ebe8f5c4
parentb4210731d9c2baff030fed90587932999324c6bc (diff)
Hotfix broken Portal 5135 autojumpHEADv0.6-HOTFIXmaster
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 :^)
-rw-r--r--src/engineapi.c4
-rw-r--r--tools/mkbindist.bat4
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 <mikesmiffy128@gmail.com>
+ * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
*
* 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