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;