I got high and made a thing that was broke and 3 years, 2 months, 17 days later I get high and fix it.

(Fixes readtimeofday, ends midnight rollover)
This commit is contained in:
Kyle Spier-Swenson
2020-03-28 07:12:23 -07:00
committed by GitHub
parent cf79d15ab1
commit 31507af1f9
+2 -1
View File
@@ -36,7 +36,8 @@ GLOBAL_VAR_INIT(midnight_rollovers, 0)
GLOBAL_VAR_INIT(rollovercheck_last_timeofday, 0)
/proc/update_midnight_rollover()
if (world.timeofday < GLOB.rollovercheck_last_timeofday) //TIME IS GOING BACKWARDS!
return GLOB.midnight_rollovers++
GLOB.midnight_rollovers++
GLOB.rollovercheck_last_timeofday = world.timeofday
return GLOB.midnight_rollovers
/proc/weekdayofthemonth()