Codechange: Use TileAddBy(Diag)Dir when possible.

This commit is contained in:
J0anJosep
2018-04-29 13:50:52 +02:00
committed by frosch
parent 944f785be8
commit 79a551a83c
6 changed files with 6 additions and 7 deletions

View File

@@ -269,7 +269,7 @@ bool CircularTileSearch(TileIndex *tile, uint size, TestTileOnSearchProc proc, v
/* If tile test is not successful, get one tile up,
* ready for a test in first circle around center tile */
*tile = TILE_ADD(*tile, TileOffsByDir(DIR_N));
*tile = TileAddByDir(*tile, DIR_N);
return CircularTileSearch(tile, size / 2, 1, 1, proc, user_data);
} else {
return CircularTileSearch(tile, size / 2, 0, 0, proc, user_data);