Codechange: [NPF] Add some consts.
This commit is contained in:

committed by
Charles Pigott

parent
96c5e5e73a
commit
19be1f4ace
@@ -1098,7 +1098,7 @@ static bool FlowsDown(TileIndex begin, TileIndex end)
|
||||
}
|
||||
|
||||
/* AyStar callback for checking whether we reached our destination. */
|
||||
static int32 River_EndNodeCheck(AyStar *aystar, OpenListNode *current)
|
||||
static int32 River_EndNodeCheck(const AyStar *aystar, const OpenListNode *current)
|
||||
{
|
||||
return current->path.node.tile == *(TileIndex*)aystar->user_target ? AYSTAR_FOUND_END_NODE : AYSTAR_DONE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user