From cf136b9d179aa8ab4e597490df7c44e6c8fcb291 Mon Sep 17 00:00:00 2001 From: S34N <12197162+S34NW@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:39:07 +0100 Subject: [PATCH] 516 compat: Replace `caller` with `requester` (#26401) * replace caller with caller_ * requester --- code/__HELPERS/paths/jps.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/__HELPERS/paths/jps.dm b/code/__HELPERS/paths/jps.dm index db2377e8be4..c816fc969e0 100644 --- a/code/__HELPERS/paths/jps.dm +++ b/code/__HELPERS/paths/jps.dm @@ -55,7 +55,7 @@ /datum/pathfind/jps /// The movable we are pathing - var/atom/movable/caller + var/atom/movable/requester /// The turf we're trying to path to (note that this won't track a moving target) var/turf/end /// The open list/stack we pop nodes out from (TODO: make this a normal list and macro-ize the heap operations to reduce proc overhead) @@ -72,9 +72,9 @@ ///Defines how we handle diagonal moves. See __DEFINES/path.dm var/diagonal_handling = DIAGONAL_REMOVE_CLUNKY -/datum/pathfind/jps/proc/setup(atom/movable/caller, list/access, max_distance, simulated_only, avoid, list/datum/callback/on_finish, atom/goal, mintargetdist, skip_first, diagonal_handling) - src.caller = caller - src.pass_info = new(caller, access) +/datum/pathfind/jps/proc/setup(atom/movable/requester, list/access, max_distance, simulated_only, avoid, list/datum/callback/on_finish, atom/goal, mintargetdist, skip_first, diagonal_handling) + src.requester = requester + src.pass_info = new(requester, access) src.max_distance = max_distance src.simulated_only = simulated_only src.avoid = avoid @@ -88,12 +88,12 @@ /datum/pathfind/jps/Destroy(force) . = ..() - caller = null + requester = null end = null open = null /datum/pathfind/jps/start() - start = start || get_turf(caller) + start = start || get_turf(requester) . = ..() if(!.) return . @@ -115,7 +115,7 @@ . = ..() if(!.) return . - if(QDELETED(caller)) + if(QDELETED(requester)) return FALSE while(!open.IsEmpty() && !path)