summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.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/roadveh_cmd.cpp
parent944f785be8e0d994552d96e2990232cba094efdd (diff)
downloadopenttd-79a551a83ceda50b1b95d2a5519dbcbc6f700d2b.tar.xz
Codechange: Use TileAddBy(Diag)Dir when possible.
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 7adc532b6..fcabf477f 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1449,7 +1449,7 @@ again:
/* Vehicle has arrived at a bay in a road stop */
if (IsDriveThroughStopTile(v->tile)) {
- TileIndex next_tile = TILE_ADD(v->tile, TileOffsByDir(v->direction));
+ TileIndex next_tile = TileAddByDir(v->tile, v->direction);
/* Check if next inline bay is free and has compatible road. */
if (RoadStop::IsDriveThroughRoadStopContinuation(v->tile, next_tile) && (GetRoadTypes(next_tile) & v->compatible_roadtypes) != 0) {