mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-08 00:52:55 +00:00
Merge branch 'restartlevel-encore' into 'master'
Restartlevel respects cv_kartencore See merge request KartKrew/Kart!780
This commit is contained in:
commit
f292397993
1 changed files with 8 additions and 1 deletions
|
|
@ -3154,6 +3154,8 @@ static void Command_RandomMap(void)
|
||||||
|
|
||||||
static void Command_RestartLevel(void)
|
static void Command_RestartLevel(void)
|
||||||
{
|
{
|
||||||
|
boolean newencore = false;
|
||||||
|
|
||||||
if (client && !IsPlayerAdmin(consoleplayer))
|
if (client && !IsPlayerAdmin(consoleplayer))
|
||||||
{
|
{
|
||||||
CONS_Printf(M_GetText("Only the server or a remote admin can use this.\n"));
|
CONS_Printf(M_GetText("Only the server or a remote admin can use this.\n"));
|
||||||
|
|
@ -3166,7 +3168,12 @@ static void Command_RestartLevel(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
D_MapChange(gamemap, gametype, encoremode, 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)
|
static void Command_Pause(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue