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

@@ -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) {