File diff r23244:f49fdf9fd43c → r23245:c5cb79c9bc26
src/landscape.cpp
Show inline comments
 
@@ -1098,7 +1098,7 @@ static bool FlowsDown(TileIndex begin, T
 
}
 

	
 
/* 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;
 
}