Merge pull request #5004 from Menshin/malf_timer_fixes

Malf timer polishing/fixes
This commit is contained in:
Remie Richards
2014-10-03 21:41:15 +01:00
7 changed files with 19 additions and 20 deletions
+4
View File
@@ -114,6 +114,10 @@ var/global/pipe_processing_killed = 0
if(!Failsafe) new /datum/controller/failsafe()
var/currenttime = world.timeofday
if((last_tick_timeofday - currenttime) > 1e5) //midnight rollover protection
last_tick_timeofday -= MIDNIGHT_ROLLOVER
last_tick_duration = (currenttime - last_tick_timeofday) / 10
last_tick_timeofday = currenttime