[MIRROR] Fixes improper calculation of days in round time (#7449)

* Adds parentheses to calculating days in round time (#60716)

* Fixes improper calculation of days in round time

Co-authored-by: Mokiros <Mokiros@yandex.ru>
This commit is contained in:
SkyratBot
2021-08-08 02:41:12 +01:00
committed by GitHub
co-authored by Mokiros
parent dbe24b1958
commit f3f2a526e6
+1 -1
View File
@@ -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