Codechange: move TILE_MASK to Map::WrapToMap

This commit is contained in:
Rubidium
2023-01-21 11:05:19 +01:00
committed by rubidium42
parent fe2bcd2a58
commit de6bc8e692
5 changed files with 17 additions and 15 deletions

View File

@@ -433,7 +433,7 @@ TileIndex GetNearbyTile(byte parameter, TileIndex tile, bool signed_offsets, Axi
if (axis == AXIS_Y) Swap(x, y);
/* Make sure we never roam outside of the map, better wrap in that case */
return TILE_MASK(tile + TileDiffXY(x, y));
return Map::WrapToMap(tile + TileDiffXY(x, y));
}
/**