Changeset - r28428:a457db63f2e3
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 4 months ago 2024-01-10 00:20:34
j.g.rennison@gmail.com
Fix: Incorrect assertion in GetTileIndexFromLocalCoordinate (#11747)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/pathfinder/water_regions.cpp
Show inline comments
 
@@ -191,7 +191,7 @@ std::vector<WaterRegion> _water_regions;
 

	
 
TileIndex GetTileIndexFromLocalCoordinate(int region_x, int region_y, int local_x, int local_y)
 
{
 
	assert(local_x >= 0 && local_y < WATER_REGION_EDGE_LENGTH);
 
	assert(local_x >= 0 && local_x < WATER_REGION_EDGE_LENGTH);
 
	assert(local_y >= 0 && local_y < WATER_REGION_EDGE_LENGTH);
 
	return TileXY(WATER_REGION_EDGE_LENGTH * region_x + local_x, WATER_REGION_EDGE_LENGTH * region_y + local_y);
 
}
0 comments (0 inline, 0 general)