Skip to content

Commit

Permalink
Update statpanel.dm
Browse files Browse the repository at this point in the history
makes time display more accurate and not count roundstart time
  • Loading branch information
silencer-pl committed May 27, 2024
1 parent 0a8cb7f commit fa2539f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/controllers/subsystem/statpanel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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")]",
Expand Down

0 comments on commit fa2539f

Please sign in to comment.