mirror of https://github.com/OpenTTD/OpenTTD
Codechange 8e9603b: Replace int32_t with AyStarStatus (#13127)
parent
9bc64b553b
commit
cf7710fb61
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue