Restartmap respects encore Auto too

Per jart's suggestion
This commit is contained in:
toaster 2022-11-26 16:40:19 +00:00
parent f8c6351847
commit 15a51e370a

View file

@ -3152,6 +3152,8 @@ static void Command_RandomMap(void)
static void Command_RestartLevel(void)
{
boolean newencore = false;
if (client && !IsPlayerAdmin(consoleplayer))
{
CONS_Printf(M_GetText("Only the server or a remote admin can use this.\n"));
@ -3164,7 +3166,12 @@ static void Command_RestartLevel(void)
return;
}
D_MapChange(gamemap, gametype, (cv_kartencore.value == 1), false, 0, false, false);
if (cv_kartencore.value != 0)
{
newencore = (cv_kartencore.value == 1) || encoremode;
}
D_MapChange(gamemap, gametype, newencore, false, 0, false, false);
}
static void Command_Pause(void)