Codechange: rename TILE_ADD(XY) to TileAdd(XY)
This commit is contained in:
@@ -74,7 +74,7 @@ static TileIndex GetOtherAqueductEnd(TileIndex tile_from, TileIndex *tile_to = n
|
||||
* complains about the wrong slope instead of the ends not matching up.
|
||||
* Make sure the coordinate is always a valid tile within the map, so we
|
||||
* don't go "off" the map. That would cause the wrong error message. */
|
||||
if (!IsValidDiagDirection(dir)) return TILE_ADDXY(tile_from, TileX(tile_from) > 2 ? -1 : 1, 0);
|
||||
if (!IsValidDiagDirection(dir)) return TileAddXY(tile_from, TileX(tile_from) > 2 ? -1 : 1, 0);
|
||||
|
||||
/* Direction the aqueduct is built to. */
|
||||
TileIndexDiff offset = TileOffsByDiagDir(ReverseDiagDir(dir));
|
||||
@@ -83,7 +83,7 @@ static TileIndex GetOtherAqueductEnd(TileIndex tile_from, TileIndex *tile_to = n
|
||||
|
||||
TileIndex endtile = tile_from;
|
||||
for (int length = 0; IsValidTile(endtile) && TileX(endtile) != 0 && TileY(endtile) != 0; length++) {
|
||||
endtile = TILE_ADD(endtile, offset);
|
||||
endtile = TileAdd(endtile, offset);
|
||||
|
||||
if (length > max_length) break;
|
||||
|
||||
|
Reference in New Issue
Block a user