From 39dff2e209fa42ebbb033bb6a10e419e5aeeb5f8 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Wed, 4 Aug 2021 17:16:51 -0400 Subject: [PATCH] Shuttles update their base turfs each move --- code/modules/shuttles/shuttle.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/shuttles/shuttle.dm b/code/modules/shuttles/shuttle.dm index a062d2a3d3..cb120ef214 100644 --- a/code/modules/shuttles/shuttle.dm +++ b/code/modules/shuttles/shuttle.dm @@ -348,6 +348,11 @@ for(var/obj/structure/cable/C in A) powernets |= C.powernet + // Update our base turfs before we move, so that transparent turfs look good. + var/new_base = destination.base_turf || /turf/space + for(var/area/A as anything in shuttle_area) + A.base_turf = new_base + // Actually do the movement of everything - This replaces origin.move_contents_to(destination) translate_turfs(turf_translation, current_location.base_area, current_location.base_turf) current_location = destination