isopenturf() macro, update_above improvements (#2931)

changes:

Added a isopenturf() macro, equivalent to istype(thing, /turf/simulated/open).
Converted most/all instances of istype(/turf/simulated/open) to isopenturf().
Made update_above()' aware of queue status & inlined a proc-call.
This commit is contained in:
Lohikar
2017-07-03 12:04:18 +03:00
committed by skull132
parent d0fcc77f31
commit 9c010f92d1
18 changed files with 29 additions and 33 deletions
+2 -2
View File
@@ -164,10 +164,10 @@ datum/unit_test/wire_test/start_test()
continue
var/bad = 0
if (ladder.target_up && !istype(GetAbove(ladder), /turf/simulated/open))
if (ladder.target_up && !isopenturf(GetAbove(ladder)))
bad |= BLOCKED_UP
if (ladder.target_down && !istype(ladder.loc, /turf/simulated/open))
if (ladder.target_down && !isopenturf(ladder.loc))
bad |= BLOCKED_DOWN
if (bad)