Menu-FN: Small fix to avoid an infinite loop of menu_restarts in case

the cvars don't get set fast enough, somehow
This commit is contained in:
Marco Cawthorne 2021-01-23 15:24:49 +01:00
parent dfbb153946
commit cc240fefb2
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ m_draw(vector screensize)
* our menu. I'm so, so sorry. No, RendererRestarted doesn't see fs_game
* fast enough either. */
if (cvar_string("fs_game") != games[gameinfo_current].gamedir) {
localcmd("menu_restart\n");
localcmd(sprintf("gameinfo_gamedir %s\nmenu_restart\n", cvar_string("fs_game")));
}
oldtime = time;