mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Restartmap respects encore Auto too
Per jart's suggestion
This commit is contained in:
parent
f8c6351847
commit
15a51e370a
1 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue