From f34b45b7b822df67c3e7e9ff46008ab22cdc6e4b Mon Sep 17 00:00:00 2001 From: Aranclanos Date: Mon, 8 Jun 2015 05:07:02 -0300 Subject: [PATCH] Fixes shuttles taking turfs that aren't part of the shuttle itself. Fixes shuttles breaking apart if the turfs aren't strictly shuttle turfs (who are also gone in a previous commit, now under wall and floors paths) Fixes #9722 Fixes #6856 Fixes #9788 --- code/modules/shuttle/shuttle.dm | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index 1d107132a08..b60a0d7bfe5 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -56,7 +56,7 @@ //returns turfs within our projected rectangle in a specific order. //this ensures that turfs are copied over in the same order, regardless of any rotation -/obj/docking_port/proc/return_ordered_turfs(_x, _y, _z, _dir) +/obj/docking_port/proc/return_ordered_turfs(_x, _y, _z, _dir, area/A) if(!_dir) _dir = dir if(!_x) @@ -86,7 +86,14 @@ for(var/dy=0, dy