From fa2539ff3baee6a52077db0aef9ff922ccb48631 Mon Sep 17 00:00:00 2001 From: silencer-pl <103842328+silencer-pl@users.noreply.github.com> Date: Mon, 27 May 2024 12:50:43 -0400 Subject: [PATCH] Update statpanel.dm makes time display more accurate and not count roundstart time --- code/controllers/subsystem/statpanel.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/controllers/subsystem/statpanel.dm b/code/controllers/subsystem/statpanel.dm index 0ac1aab9a9..4a03177af2 100644 --- a/code/controllers/subsystem/statpanel.dm +++ b/code/controllers/subsystem/statpanel.dm @@ -23,12 +23,17 @@ SUBSYSTEM_DEF(statpanels) /datum/controller/subsystem/statpanels/fire(resumed = FALSE) if (!resumed) var/wtime = world.time + var/time_displayed + if (SSticker.current_state >= GAME_STATE_PLAYING) + time_displayed = "[time2text((GLOB.ingame_time - SSticker.round_start_time)+ wtime,"hh:mm",0)]" + else + time_displayed = "[time2text(GLOB.ingame_time,"hh:mm",0)]" num_fires++ global_data = list( "Sector Patrol ALPHA", "[GLOB.ingame_location]", "[GLOB.ingame_date]", - "Local Time: [time2text(GLOB.ingame_time + wtime,"hh:mm",0)]", + "Local Time: [time_displayed]", "---------", // "Round Time: [ROUND_TIME]", // "Server Time: [time2text(world.timeofday, "YYYY-MM-DD hh:mm:ss")]",