mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user