From dcc5681ff85ea74cfcf45424f47c694819e2187b Mon Sep 17 00:00:00 2001 From: MarinaGryphon Date: Wed, 7 Jul 2021 14:45:54 -0500 Subject: [PATCH] Fixes midnight rollover --- code/_helpers/time.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/_helpers/time.dm b/code/_helpers/time.dm index e86a5aa2aec..dd2d4eefefc 100644 --- a/code/_helpers/time.dm +++ b/code/_helpers/time.dm @@ -119,7 +119,8 @@ GLOBAL_VAR_INIT(round_start_time, 0) /var/rollovercheck_last_timeofday = 0 /proc/update_midnight_rollover() if (world.timeofday < rollovercheck_last_timeofday) //TIME IS GOING BACKWARDS! - return midnight_rollovers++ + midnight_rollovers += 1 + rollovercheck_last_timeofday = world.timeofday return midnight_rollovers //Increases delay as the server gets more overloaded,