1
0
Fork 0

Codechange 8e9603b: Replace int32_t with AyStarStatus

pull/13127/head
SamuXarick 2024-11-27 15:43:19 +00:00
parent 23e252ad40
commit 71205bdaca
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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.