mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #4980 from Loganbacca/clickfix
Invulnerable windows fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user