From 973779f4ba629ad2b72cebbd72029b50f3b02b43 Mon Sep 17 00:00:00 2001 From: Heroman Date: Sat, 29 Jun 2019 07:00:02 +1000 Subject: [PATCH] Fixes construction of lights --- code/modules/power/lighting.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 359392d178..a23a65ffdf 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -30,13 +30,15 @@ var/global/list/light_type_cache = list() var/fixture_type = /obj/machinery/light var/sheets_refunded = 2 -/obj/machinery/light_construct/New(atom/newloc, obj/machinery/light/fixture = null) +/obj/machinery/light_construct/New(var/atom/newloc, var/newdir, var/building = 0, var/datum/frame/frame_types/frame_type, var/obj/machinery/light/fixture = null) ..(newloc) if(fixture) fixture_type = fixture.type fixture.transfer_fingerprints_to(src) set_dir(fixture.dir) stage = 2 + else if(newdir) + set_dir(newdir) update_icon() /obj/machinery/light_construct/update_icon() @@ -441,7 +443,7 @@ var/global/list/light_type_cache = list() playsound(src, W.usesound, 75, 1) user.visible_message("[user.name] opens [src]'s casing.", \ "You open [src]'s casing.", "You hear a noise.") - new construct_type(src.loc, src) + new construct_type(src.loc, fixture = src) qdel(src) return