The author of this commit hates the print in NumLaps_OnChange so much

- Don't print outside of Playing()
    - Fixes the one cvar set message when playing back any Staff Replay
- Have a bespoke map default print for outside-of-level changes
This commit is contained in:
toaster 2024-04-03 21:01:08 +01:00
parent b8c67dcc9e
commit 2c5f0de69c

View file

@ -7216,9 +7216,16 @@ void NumLaps_OnChange(void)
CONS_Printf(M_GetText("Number of laps have been set to %d.\n"), numlaps); CONS_Printf(M_GetText("Number of laps have been set to %d.\n"), numlaps);
} }
} }
else else if (Playing())
{ {
CONS_Printf(M_GetText("Number of laps will be set to %d next round.\n"), cv_numlaps.value); if (cv_numlaps.value == -1)
{
CONS_Printf(M_GetText("Number of laps will be the map default next round.\n"));
}
else
{
CONS_Printf(M_GetText("Number of laps will be set to %d next round.\n"), cv_numlaps.value);
}
} }
} }