From 93060a2766747b697bdc7a8f97e9ce3d05b9ce0a Mon Sep 17 00:00:00 2001 From: mwerezak Date: Sun, 15 Jun 2014 11:57:57 -0400 Subject: [PATCH] Fixes old ferry shuttles (e.g. supply) not being able to use move() directly. This shouldn't be necessary once the supply and emergency shuttles are updated to the new system, however it will keep them working in the meantime. --- code/modules/shuttles/shuttle_console.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/shuttles/shuttle_console.dm b/code/modules/shuttles/shuttle_console.dm index b400017f603..20728cda932 100644 --- a/code/modules/shuttles/shuttle_console.dm +++ b/code/modules/shuttles/shuttle_console.dm @@ -40,6 +40,11 @@ ..(departing, destination, interim, travel_time) /datum/shuttle/ferry/move(var/area/origin,var/area/destination) + if(!destination) + destination = (location == 1 ? area_station : area_offsite) + if(!origin) + origin = (location == 1 ? area_offsite : area_station) + if (docking_controller && !docking_controller.undocked()) docking_controller.force_undock() ..(origin, destination)