Fixes the adhomian watch (#11978)

This commit is contained in:
Casper3667
2021-05-31 09:11:55 +02:00
committed by GitHub
parent 311957e47e
commit 88c03a04c7
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -162,7 +162,7 @@
current_day += 61
if(3)
current_day += 59 + isLeap(text2num(time2text(world.realtime, "YYYY"))) // we can conveniently use the result of `isLeap` to add 1 when we are in a leap year
var/real_time = text2num(time2text(world.time + (roundstart_hour HOURS), "hh"))
var/real_time = text2num(time2text(world.time + (REALTIMEOFDAY - (TIME_OFFSET HOURS)), "hh"))
var/adhomian_time = real_time
if(ISEVEN(current_day))
adhomian_time = real_time + 24