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

@@ -1010,7 +1010,7 @@ static void SetupFarmFieldFence(TileIndex tile, int size, byte type, DiagDirecti
TileIndexDiff diff = (DiagDirToAxis(side) == AXIS_Y ? TileDiffXY(1, 0) : TileDiffXY(0, 1));
do {
tile = TILE_MASK(tile);
tile = Map::WrapToMap(tile);
if (IsTileType(tile, MP_CLEAR) && IsClearGround(tile, CLEAR_FIELDS)) {
byte or_ = type;