mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Merge pull request #22793 from Core0verload/world_time
Fixes latejoin panel and world topic showing incorrect round duration
This commit is contained in:
@@ -374,7 +374,7 @@
|
||||
|
||||
|
||||
/mob/new_player/proc/LateChoices()
|
||||
var/mills = world.time // 1/10 of a second, not real milliseconds but whatever
|
||||
var/mills = world.time - round_start_time // 1/10 of a second, not real milliseconds but whatever
|
||||
//var/secs = ((mills % 36000) % 600) / 10 //Not really needed, but I'll leave it here for refrence.. or something
|
||||
var/mins = (mills % 36000) / 600
|
||||
var/hours = mills / 36000
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ var/last_irc_status = 0
|
||||
// Key-authed callers may know the truth behind the "secret"
|
||||
|
||||
s["security_level"] = get_security_level()
|
||||
s["round_duration"] = round(world.time/10)
|
||||
s["round_duration"] = round((world.time-round_start_time)/10)
|
||||
// Amount of world's ticks in seconds, useful for calculating round duration
|
||||
|
||||
if(SSshuttle && SSshuttle.emergency)
|
||||
|
||||
Reference in New Issue
Block a user