summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorJ0anJosep <juanjo.ng.83@gmail.com>2018-04-29 13:50:52 +0200
committerfrosch <github@elsenhans.name>2018-04-30 18:55:04 +0200
commit79a551a83ceda50b1b95d2a5519dbcbc6f700d2b (patch)
tree7723211f8f91fe6cc90630dbef27931ae437922f /src/map.cpp
parent944f785be8e0d994552d96e2990232cba094efdd (diff)
downloadopenttd-79a551a83ceda50b1b95d2a5519dbcbc6f700d2b.tar.xz
Codechange: Use TileAddBy(Diag)Dir when possible.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 986aa1bbb..85590c3e8 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -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);