From 2c5f0de69c687d7ea258c9ccbdb799d56e876ad4 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 3 Apr 2024 21:01:08 +0100 Subject: [PATCH] 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 --- src/d_netcmd.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 78f88435c..1a0dd9532 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -7216,9 +7216,16 @@ void NumLaps_OnChange(void) 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); + } } }