From 85b555ac7e5117e5289c1d0cea5e8dec73a6480e Mon Sep 17 00:00:00 2001 From: ArcaneDefence <51932756+ArcaneDefence@users.noreply.github.com> Date: Thu, 9 Sep 2021 22:32:57 -0600 Subject: [PATCH] Fixes window opacity when repainting bug (#61268) Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> --- code/game/objects/structures/window.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index 2b724cf657f..421f22acbfa 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -305,9 +305,8 @@ air_update_turf(TRUE, FALSE) add_fingerprint(user) -/obj/structure/window/proc/on_painted(is_dark_color) +/obj/structure/window/proc/on_painted(obj/structure/window/source, is_dark_color) SIGNAL_HANDLER - if (is_dark_color && fulltile) //Opaque directional windows restrict vision even in directions they are not placed in, please don't do this set_opacity(255) else