diff options
author | J0anJosep <juanjo.ng.83@gmail.com> | 2018-04-29 13:50:52 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-04-30 18:55:04 +0200 |
commit | 79a551a83ceda50b1b95d2a5519dbcbc6f700d2b (patch) | |
tree | 7723211f8f91fe6cc90630dbef27931ae437922f /src/station_gui.cpp | |
parent | 944f785be8e0d994552d96e2990232cba094efdd (diff) | |
download | openttd-79a551a83ceda50b1b95d2a5519dbcbc6f700d2b.tar.xz |
Codechange: Use TileAddBy(Diag)Dir when possible.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index aa2017018..c1927bdcc 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -2208,7 +2208,7 @@ static const T *FindStationsNearby(TileArea ta, bool distant_join) if (distant_join && min(ta.w, ta.h) >= _settings_game.station.station_spread) return NULL; uint max_dist = distant_join ? _settings_game.station.station_spread - min(ta.w, ta.h) : 1; - TileIndex tile = TILE_ADD(ctx.tile, TileOffsByDir(DIR_N)); + TileIndex tile = TileAddByDir(ctx.tile, DIR_N); CircularTileSearch(&tile, max_dist, ta.w, ta.h, AddNearbyStation<T>, &ctx); return NULL; |