mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 17:14:47 +01:00
Fixes runtime in pathfinding (#96468)
## About The Pull Request Obvious ## Why It's Good For The Game <img width="532" height="112" alt="image" src="https://github.com/user-attachments/assets/d4e82701-943c-4301-a301-2db53b135e5b" /> ## Changelog 🆑 fix: fixed a runtime in pathfinding /🆑
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
return FALSE
|
||||
|
||||
/turf/open/openspace/CanAStarPass(to_dir, datum/can_pass_info/pass_info)
|
||||
var/atom/movable/our_movable = pass_info.requester_ref.resolve()
|
||||
var/atom/movable/our_movable = pass_info.requester_ref?.resolve()
|
||||
if(our_movable && !our_movable.can_z_move(DOWN, src, null, ZMOVE_FALL_FLAGS)) //If we can't fall here (flying/lattice), it's fine to path through
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user