Disallow restartlevel in rule-restricted gameplay

This commit is contained in:
AJ Martinez 2024-05-01 21:21:29 -07:00
parent 7bb49a9f67
commit db6e4afdaa

View file

@ -2982,6 +2982,12 @@ static void Command_RestartLevel(void)
return;
}
if (K_CanChangeRules(false) == false && CV_CheatsEnabled() == false)
{
CONS_Printf(M_GetText("Cheats must be enabled.\n"));
return;
}
if (cv_kartencore.value != 0)
{
newencore = (cv_kartencore.value == 1) || encoremode;