From fdfa5ee2533c4a138ade9eff1e293d13b8c385d7 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 19 Aug 2020 03:15:19 +0200 Subject: [PATCH] [MIRROR] Update stat panel to give round time days. (#395) * Update stat panel to give round time days. (#52986) * Update stat panel to give round time days. Co-authored-by: WarlockD --- code/modules/mob/mob.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index a00d24d6bfb..2e5f3a6d3ec 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -815,7 +815,11 @@ stat(null, "Round ID: [GLOB.round_id ? GLOB.round_id : "NULL"]") stat(null, "Server Time: [time2text(world.timeofday, "YYYY-MM-DD hh:mm:ss")]") if (SSticker.round_start_time) - stat(null, "Round Time: [gameTimestamp("hh:mm:ss", (world.time - SSticker.round_start_time))]") + var/round_time = world.time - SSticker.round_start_time + if(round_time > MIDNIGHT_ROLLOVER) + stat(null, "Round Time: [round(round_time/MIDNIGHT_ROLLOVER)]:[gameTimestamp("hh:mm:ss", round_time)]") + else + stat(null, "Round Time: [gameTimestamp("hh:mm:ss", round_time)]") else stat(null, "Lobby Time: [gameTimestamp("hh:mm:ss", 0)]") stat(null, "Station Time: [station_time_timestamp()]")