Skip to content

Commit 56f89f1

Browse files
Fixes shutter buttons breaking for rounds that play near 24:00 GMT and reach 00:00 (#8545)
* f * Update code/game/machinery/door_control.dm Co-authored-by: SirRichardFrancis <65828539+SirRichardFrancis@users.noreply.github.com> --------- Co-authored-by: SirRichardFrancis <65828539+SirRichardFrancis@users.noreply.github.com>
1 parent f7c4d7a commit 56f89f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/game/machinery/doors/blast_door.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
if(stat & NOPOWER)
8989
return
9090
/// prevent command spam
91-
if(last_message > world.timeofday)
91+
if(last_message > world.time)
9292
return
9393
switch(signal.data["message"])
9494
if("DATA_DOOR_OPENED")
@@ -109,7 +109,7 @@
109109
broadcast_status()
110110
if("CMD_DOOR_STATE")
111111
broadcast_status()
112-
last_message = world.timeofday + 1 SECONDS
112+
last_message = world.time + 1 SECONDS
113113

114114
// Proc: Bumped()
115115
// Parameters: 1 (AM - Atom that tried to walk through this object)

0 commit comments

Comments
 (0)