From 3defd460379afabf8ba0862b2fd87fc10fac3585 Mon Sep 17 00:00:00 2001 From: S34N <12197162+S34NW@users.noreply.github.com> Date: Wed, 1 Sep 2021 19:31:20 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> --- code/game/objects/structures/window.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index c3c23b4296e..7872c395d1e 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -545,7 +545,7 @@ if(!I.use_tool(src, user, 50, volume = I.tool_volume)) return WRENCH_UNANCHOR_WALL_MESSAGE - new/obj/item/mounted/frame/light_switch/windowtint(get_turf(src)) + new /obj/item/mounted/frame/light_switch/windowtint(get_turf(src)) qdel(src) /obj/machinery/button/windowtint/proc/toggle_tint() @@ -559,7 +559,7 @@ W.toggle_polarization() for(var/obj/structure/window/full/reinforced/polarized/W in range(src, range)) - if(W.id == src.id || !W.id) + if(W.id == id || !W.id) W.toggle_polarization() /obj/machinery/button/windowtint/power_change() @@ -675,6 +675,7 @@ name = "electrochromic window" desc = "Adjusts its tint with voltage. Might take a few good hits to shatter it." var/id + /obj/structure/window/full/reinforced/tinted name = "tinted window" desc = "It looks rather strong and opaque. Might take a few good hits to shatter it."