Check map command for rulechange

This commit is contained in:
Antonio Martinez 2025-05-23 20:02:50 -04:00
parent 2940b45a22
commit 0e515f8688

View file

@ -2529,7 +2529,7 @@ static void Command_Map_f(void)
newforcespecialstage = COM_CheckParm("-forcespecialstage"); newforcespecialstage = COM_CheckParm("-forcespecialstage");
usingcheats = CV_CheatsEnabled(); usingcheats = CV_CheatsEnabled();
ischeating = (!(netgame || multiplayer)) || (!newresetplayers); ischeating = (!(netgame || multiplayer)) || (!newresetplayers) || (!K_CanChangeRules(false));
if (!( first_option = COM_FirstOption() )) if (!( first_option = COM_FirstOption() ))
first_option = COM_Argc(); first_option = COM_Argc();
@ -2635,9 +2635,6 @@ static void Command_Map_f(void)
} }
} }
if (grandprixinfo.gp)
ischeating = true;
if (ischeating && !usingcheats) if (ischeating && !usingcheats)
{ {
CONS_Printf(M_GetText("Cheats must be enabled.\n")); CONS_Printf(M_GetText("Cheats must be enabled.\n"));