From dc9debf985fc20db2cb52cecee5c9bfdb253c638 Mon Sep 17 00:00:00 2001 From: harryob <55142896+harryob@users.noreply.github.com> Date: Tue, 29 Aug 2023 09:32:24 +0100 Subject: [PATCH] fixes some vehicle stuff, and some random code that ended up commented --- code/controllers/subsystem/interior.dm | 12 +++++++++++- code/game/machinery/doors/alarmlock.dm | 2 -- code/modules/vehicles/multitile/multitile.dm | 6 +++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/code/controllers/subsystem/interior.dm b/code/controllers/subsystem/interior.dm index f81cc6c8d88c..7d52b0f56308 100644 --- a/code/controllers/subsystem/interior.dm +++ b/code/controllers/subsystem/interior.dm @@ -19,7 +19,17 @@ SUBSYSTEM_DEF(interior) var/list/bottom_left = reserved_area.bottom_left_coords - template.load(locate(bottom_left[1] + (INTERIOR_BORDER_SIZE / 2), bottom_left[2] + (INTERIOR_BORDER_SIZE / 2), bottom_left[3]), centered = FALSE) + var/list/bounds = template.load(locate(bottom_left[1] + (INTERIOR_BORDER_SIZE / 2), bottom_left[2] + (INTERIOR_BORDER_SIZE / 2), bottom_left[3]), centered = FALSE) + + var/list/turfs = block( locate(bounds[MAP_MINX], bounds[MAP_MINY], bounds[MAP_MINZ]), + locate(bounds[MAP_MAXX], bounds[MAP_MAXY], bounds[MAP_MAXZ])) + + var/list/areas + for(var/turf/current_turf as anything in turfs) + areas |= current_turf.loc + + for(var/area/current_area as anything in areas) + current_area.add_base_lighting() interiors += interior return reserved_area diff --git a/code/game/machinery/doors/alarmlock.dm b/code/game/machinery/doors/alarmlock.dm index c55250fdc04d..a69a92906a38 100644 --- a/code/game/machinery/doors/alarmlock.dm +++ b/code/game/machinery/doors/alarmlock.dm @@ -25,7 +25,6 @@ return ..() /obj/structure/machinery/door/airlock/alarmlock/receive_signal(datum/signal/signal) -/* ..() if(inoperable()) return @@ -41,4 +40,3 @@ if("minor", "clear") autoclose = 0 open() -*/ diff --git a/code/modules/vehicles/multitile/multitile.dm b/code/modules/vehicles/multitile/multitile.dm index 20cf6217cc06..9e4d2c9d297b 100644 --- a/code/modules/vehicles/multitile/multitile.dm +++ b/code/modules/vehicles/multitile/multitile.dm @@ -180,13 +180,12 @@ lighting_holder.set_light_range(vehicle_light_range) lighting_holder.set_light_power(vehicle_light_power) lighting_holder.set_light_on(vehicle_light_range || vehicle_light_power) + else if(light_range) + set_light_on(TRUE) light_pixel_x = -bound_x light_pixel_y = -bound_y - if(light_range) - set_light_on(TRUE) - healthcheck() update_icon() @@ -444,6 +443,7 @@ /atom/movable/vehicle_light_holder light_system = MOVABLE_LIGHT + mouse_opacity = MOUSE_OPACITY_TRANSPARENT /atom/movable/vehicle_light_holder/Initialize(mapload, ...) . = ..()