mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 08:22:58 +00:00
Disallow restartlevel in rule-restricted gameplay
This commit is contained in:
parent
7bb49a9f67
commit
db6e4afdaa
1 changed files with 6 additions and 0 deletions
|
|
@ -2982,6 +2982,12 @@ static void Command_RestartLevel(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (K_CanChangeRules(false) == false && CV_CheatsEnabled() == false)
|
||||||
|
{
|
||||||
|
CONS_Printf(M_GetText("Cheats must be enabled.\n"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (cv_kartencore.value != 0)
|
if (cv_kartencore.value != 0)
|
||||||
{
|
{
|
||||||
newencore = (cv_kartencore.value == 1) || encoremode;
|
newencore = (cv_kartencore.value == 1) || encoremode;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue