summaryrefslogtreecommitdiffhomepage
path: root/src
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 /src
parentb4210731d9c2baff030fed90587932999324c6bc (diff)
Hotfix broken Portal 5135 autojumpv0.6-HOTFIX
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 :^)
Diffstat (limited to 'src')
-rw-r--r--src/engineapi.c4
1 files changed, 2 insertions, 2 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;
}
}