From 79a551a83ceda50b1b95d2a5519dbcbc6f700d2b Mon Sep 17 00:00:00 2001 From: J0anJosep Date: Sun, 29 Apr 2018 13:50:52 +0200 Subject: Codechange: Use TileAddBy(Diag)Dir when possible. --- src/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map.cpp') 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); -- cgit v1.2.3-70-g09d2