Fixes glass panes and windoors (#21591)

fixes https://github.com/Aurorastation/Aurora.3/issues/20418

After testing way too many ways to fix it, this was the only way I could
find that did not cause other issues. It should probably be testmerged
just to ensure it doesn't break something else.
This commit is contained in:
Casper3667
2025-11-15 23:15:23 +01:00
committed by GitHub
parent c85a139329
commit a608689ff6
4 changed files with 17 additions and 8 deletions
+6 -3
View File
@@ -171,13 +171,16 @@
if(mover?.movement_type & PHASING)
return TRUE
if(istype(mover) && mover.pass_flags & PASSGLASS)
return 1
return TRUE
if(is_full_window())
return !density //full tile window, you can't move into it if it's solid!
if(get_dir(loc, target) & dir)
var/movingdir = get_dir(loc,target)
if(movingdir == 0)
movingdir = get_dir(loc,mover)
if(movingdir & dir)
return !density
else
return 1
return TRUE
/obj/structure/window/CheckExit(atom/movable/O, turf/target)
if(istype(O) && O.pass_flags & PASSGLASS)