Since we're polishing advancemap, let's also make it so the Pause menu Gametype switch doesn't set up the Voting screen if it's anything other than advancemap vote

This commit is contained in:
toaster 2024-01-07 22:21:11 +00:00
parent 527492610a
commit 5c6ecc7367

View file

@ -336,7 +336,14 @@ void M_HandlePauseMenuGametype(INT32 choice)
M_ClearMenus(true);
if (server || IsPlayerAdmin(consoleplayer))
{
D_SetupVote(menugametype);
if (cv_advancemap.value == 3) // Voting screen.
{
D_SetupVote(menugametype);
}
else // ideally for "random" only, but no sane fallback for "same" and "next"
{
COM_ImmedExecute(va("randommap -gt %s", gametypes[menugametype]->name));
}
}
return;
}