Alters the round duration format, increases Stat inactivity timeout.

Round duration now has a similar format to round time.
Stat inactivity timeout is now 10 minutes instead of 1 minute.
This commit is contained in:
PsiOmega
2015-08-27 19:56:18 +02:00
parent 9a23275755
commit c5e09c30d6
2 changed files with 7 additions and 4 deletions

View File

@@ -36,9 +36,12 @@ proc/round_duration()
var/mills = world.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
var/mins = round((mills % 36000) / 600)
var/hours = round(mills / 36000)
last_round_duration = "[round(hours)]h [round(mins)]m"
mins = mins < 10 ? add_zero(mins, 1) : mins
hours = hours < 10 ? add_zero(hours, 1) : hours
last_round_duration = "[hours]:[mins]"
next_duration_update = world.time + 1 MINUTES
return last_round_duration

View File

@@ -635,7 +635,7 @@
/mob/Stat()
..()
. = (client && client.inactivity < 1200)
. = (is_client_active(10 MINUTES))
if(.)
if(statpanel("Status") && ticker && ticker.current_state != GAME_STATE_PREGAME)