Small Click refactor.

This commit is contained in:
CitadelStationBot
2017-05-08 03:06:05 -05:00
parent 09eb38714d
commit 98765ec854
4 changed files with 82 additions and 53 deletions
@@ -38,7 +38,7 @@
return
// this must come before the screen objects only block, dunno why it wasn't before
if(over_object == M && (src.ClickAccessible(M, depth=STORAGE_VIEW_DEPTH) || Adjacent(M)))
if(over_object == M && M.CanReach(src,view_only = TRUE))
orient2hud(M)
if(M.s_active)
M.s_active.close(M)