From 0d4befbe55ee7e6b00b2a0f34530b8ebf9ec6717 Mon Sep 17 00:00:00 2001 From: Mokiros Date: Sun, 8 Aug 2021 02:16:36 +0300 Subject: [PATCH] Adds parentheses to calculating days in round time (#60716) --- code/__DEFINES/time.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__DEFINES/time.dm b/code/__DEFINES/time.dm index b7c71e2d734..c67e8e60065 100644 --- a/code/__DEFINES/time.dm +++ b/code/__DEFINES/time.dm @@ -2,7 +2,7 @@ #define MIDNIGHT_ROLLOVER 864000 ///displays the current time into the round, with a lot of extra code just there for ensuring it looks okay after an entire day passes -#define ROUND_TIME ( "[world.time - SSticker.round_start_time > MIDNIGHT_ROLLOVER ? "[round(world.time - SSticker.round_start_time/MIDNIGHT_ROLLOVER)]:[worldtime2text()]" : worldtime2text()]" ) +#define ROUND_TIME ( "[world.time - SSticker.round_start_time > MIDNIGHT_ROLLOVER ? "[round((world.time - SSticker.round_start_time)/MIDNIGHT_ROLLOVER)]:[worldtime2text()]" : worldtime2text()]" ) #define JANUARY 1