1
0
Fork 0

Codechange 8e9603b: Replace int32_t with AyStarStatus (#13127)

pull/13129/head
SamuXarick 2024-11-27 23:26:07 +00:00 committed by GitHub
parent 9bc64b553b
commit cf7710fb61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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. */ /* 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; 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_FOUND_END_NODE : indicates this is the end tile
* - #AYSTAR_DONE : indicates this is not the end tile (or direction was wrong) * - #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. * Calculate the G-value for the %AyStar algorithm.