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