From 25983be804a107371be5d70557d564d016eb6555 Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Tue, 13 May 2014 23:29:11 +1200 Subject: [PATCH] Added exception for breaking full tile windows on top of single pane windows --- code/_onclick/adjacent.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/_onclick/adjacent.dm b/code/_onclick/adjacent.dm index b39df75189..fa08ea6f6b 100644 --- a/code/_onclick/adjacent.dm +++ b/code/_onclick/adjacent.dm @@ -108,7 +108,12 @@ if( O.flags&ON_BORDER) // windows have throwpass but are on border, check them first if( O.dir & target_dir || O.dir&(O.dir-1) ) // full tile windows are just diagonals mechanically - return 0 + var/obj/structure/window/W = target_atom + if(istype(W)) + if(!W.is_fulltile()) //exception for breaking full tile windows on top of single pane windows + return 0 + else + return 0 else if( !border_only ) // dense, not on border, cannot pass over return 0