mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Fixes astar pathing thru space when requested not to.
This commit is contained in:
committed by
GitHub
parent
35fcc94e09
commit
10ff77d2ac
@@ -154,10 +154,11 @@ Actual Adjacent procs :
|
|||||||
/turf/proc/reachableAdjacentTurfs(caller, ID, simulated_only)
|
/turf/proc/reachableAdjacentTurfs(caller, ID, simulated_only)
|
||||||
var/list/L = new()
|
var/list/L = new()
|
||||||
var/turf/T
|
var/turf/T
|
||||||
|
var/static/space_type_cache = typecacheof(list(/turf/open/space))
|
||||||
|
|
||||||
for(var/dir in GLOB.cardinals)
|
for(var/dir in GLOB.cardinals)
|
||||||
T = get_step(src,dir)
|
T = get_step(src,dir)
|
||||||
if(simulated_only && !istype(T))
|
if(!T || (simulated_only && space_type_cache[T.type]))
|
||||||
continue
|
continue
|
||||||
if(!T.density && !LinkBlockedWithAccess(T,caller, ID))
|
if(!T.density && !LinkBlockedWithAccess(T,caller, ID))
|
||||||
L.Add(T)
|
L.Add(T)
|
||||||
|
|||||||
Reference in New Issue
Block a user