From 855daac7e7d18f1544d03b2a53d4d3be3fa9079f Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Wed, 8 Feb 2023 15:55:13 -0800 Subject: [PATCH] Menu-FN: ensure g_iModInstallCache is set to -1 upon init to avoid Custom Game from being glitchy from a fresh install. --- src/menu-fn/m_customgame.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/menu-fn/m_customgame.qc b/src/menu-fn/m_customgame.qc index 999f6ed6..1d1de417 100644 --- a/src/menu-fn/m_customgame.qc +++ b/src/menu-fn/m_customgame.qc @@ -919,6 +919,7 @@ menu_customgame_init(void) customgame_sbMods.SetCallback(customgame_sbmods_changed); customgame_sbMods.SetMax(gameinfo_count); Widget_Add(fn_customgame, customgame_sbMods); + g_iModInstallCache = -1; #endif } @@ -971,7 +972,7 @@ menu_customgame_draw(void) #if 1 - if (g_iModInstallCache >= 0) { + if (g_iModInstallCache >= 0i) { customgame_installframe(); } #endif