From 9462eb18d8bf957567b450c64c55881216208d71 Mon Sep 17 00:00:00 2001 From: ninjanomnom Date: Mon, 11 Dec 2017 05:48:40 -0500 Subject: [PATCH] check tick before onMove --- code/modules/shuttle/shuttle.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index 71235d1fc02..7545d0eb072 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -562,6 +562,7 @@ var/list/old_contents = oldT.contents for(var/k in 1 to old_contents.len) + CHECK_TICK var/atom/movable/moving_atom = old_contents[k] if(moving_atom.loc != oldT) //fix for multi-tile objects continue @@ -575,12 +576,13 @@ old_turfs[oldT] = move_mode - /*******************************************Hiding turfs if necessary******************************************/ + /*******************************************Hiding turfs if necessary*******************************************/ var/list/new_hidden_turfs if(hidden) new_hidden_turfs = list() for(var/i in 1 to old_turfs.len) + CHECK_TICK var/turf/oldT = old_turfs[i] if(old_turfs[oldT] & MOVE_TURF) new_hidden_turfs += new_turfs[i] @@ -588,6 +590,8 @@ /*******************************************All onShuttleMove procs******************************************/ + CHECK_TICK + for(var/i in 1 to old_turfs.len) var/turf/oldT = old_turfs[i] var/turf/newT = new_turfs[i]