Merge pull request #4980 from Loganbacca/clickfix

Invulnerable windows fix
This commit is contained in:
Chinsky
2014-05-14 03:51:21 +04:00

View File

@@ -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