mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Adds a sanity check to turf/proc/distance_cardinal()
This commit is contained in:
@@ -298,6 +298,7 @@
|
||||
// possible. It results in more efficient (CPU-wise) pathing
|
||||
// for bots and anything else that only moves in cardinal dirs.
|
||||
/turf/proc/Distance_cardinal(turf/t)
|
||||
if(!src || !t) return 0
|
||||
return abs(src.x - t.x) + abs(src.y - t.y)
|
||||
|
||||
/turf/proc/AdjacentTurfsSpace()
|
||||
|
||||
Reference in New Issue
Block a user