From e7f0aeea7230b9cebd4bf79c6175dd9f3b9ccc4e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Fri, 10 Sep 2021 13:44:09 +0200 Subject: [PATCH] [MIRROR] Fixes window opacity when repainting bug (#8083) * Fixes window opacity when repainting bug (#61268) Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com> * Fixes window opacity when repainting bug Co-authored-by: ArcaneDefence <51932756+ArcaneDefence@users.noreply.github.com> 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 17c32716b2b..dffc2ab09d6 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