From 0e1d968efc1762fc408d0b081ff05d8a5dc0c7ac Mon Sep 17 00:00:00 2001 From: Buggy123 Date: Sun, 22 Dec 2019 03:26:47 -0500 Subject: [PATCH] Round time starts counting from round-start, not world-start (#48273) * Round time no longer includes time spent on startup. * Add lobby time/round time check * Indents --- code/modules/mob/mob.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index acf0bf0f426..2a18dc3254e 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -696,7 +696,10 @@ stat(null, "Next Map: [cached.map_name]") stat(null, "Round ID: [GLOB.round_id ? GLOB.round_id : "NULL"]") stat(null, "Server Time: [time2text(world.timeofday, "YYYY-MM-DD hh:mm:ss")]") - stat(null, "Round Time: [worldtime2text()]") + if (SSticker.round_start_time) + stat(null, "Round Time: [gameTimestamp("hh:mm:ss", (world.time - SSticker.round_start_time))]") + else + stat(null, "Lobby Time: [gameTimestamp("hh:mm:ss", 0)]") stat(null, "Station Time: [station_time_timestamp()]") stat(null, "Time Dilation: [round(SStime_track.time_dilation_current,1)]% AVG:([round(SStime_track.time_dilation_avg_fast,1)]%, [round(SStime_track.time_dilation_avg,1)]%, [round(SStime_track.time_dilation_avg_slow,1)]%)") if(SSshuttle.emergency)