From f0523cc09c84df30c2b66b4fb5f1d118cd658968 Mon Sep 17 00:00:00 2001 From: mojsior Date: Thu, 5 Feb 2026 12:57:36 +0100 Subject: [PATCH] access: tracker selection lists all targets --- Source/controls/tracker.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/controls/tracker.cpp b/Source/controls/tracker.cpp index 061b5fee4..aca8c3571 100644 --- a/Source/controls/tracker.cpp +++ b/Source/controls/tracker.cpp @@ -64,10 +64,13 @@ TrackerTargetCategory SelectedTrackerTargetCategory = TrackerTargetCategory::Ite TrackerTargetCategory AutoWalkTrackerTargetCategory = TrackerTargetCategory::Items; ///< Category of the active auto-walk target. int AutoWalkTrackerTargetId = -1; ///< ID of the target being auto-walked to, or -1 if inactive. -/// Maximum Chebyshev distance (in tiles) at which the player is considered -/// close enough to interact with a tracker target. +/// Maximum Chebyshev distance (in tiles) at which the player is considered +/// close enough to interact with a tracker target. constexpr int TrackerInteractDistanceTiles = 1; -constexpr int TrackerCycleDistanceTiles = 20; +// Selection list range for PageUp/PageDown. Use a value larger than the maximum +// possible distance across the 112x112 dungeon grid so the list includes all +// eligible targets on the current level. +constexpr int TrackerCycleDistanceTiles = MAXDUNX + MAXDUNY; int LockedTrackerItemId = -1; int LockedTrackerChestId = -1;