From cf7710fb61cfbb272b749f09aea1a1f77fa4fdf3 Mon Sep 17 00:00:00 2001 From: SamuXarick <43006711+SamuXarick@users.noreply.github.com> Date: Wed, 27 Nov 2024 23:26:07 +0000 Subject: [PATCH] Codechange 8e9603b: Replace int32_t with AyStarStatus (#13127) --- src/landscape.cpp | 2 +- src/pathfinder/aystar.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/landscape.cpp b/src/landscape.cpp index 411eb514d8..916201615d 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -1217,7 +1217,7 @@ struct River_UserData { }; /* AyStar callback for checking whether we reached our destination. */ -static int32_t River_EndNodeCheck(const AyStar *aystar, const PathNode *current) +static AyStarStatus River_EndNodeCheck(const AyStar *aystar, const PathNode *current) { return current->GetTile() == *(TileIndex*)aystar->user_target ? AYSTAR_FOUND_END_NODE : AYSTAR_DONE; } diff --git a/src/pathfinder/aystar.h b/src/pathfinder/aystar.h index 033e488d65..1e94bfa02d 100644 --- a/src/pathfinder/aystar.h +++ b/src/pathfinder/aystar.h @@ -62,7 +62,7 @@ struct AyStar; * - #AYSTAR_FOUND_END_NODE : indicates this is the end tile * - #AYSTAR_DONE : indicates this is not the end tile (or direction was wrong) */ -typedef int32_t AyStar_EndNodeCheck(const AyStar *aystar, const PathNode *current); +typedef AyStarStatus AyStar_EndNodeCheck(const AyStar *aystar, const PathNode *current); /** * Calculate the G-value for the %AyStar algorithm.