Simplify direction lookup to also work for oil rigs.

(cherry picked from commit acbff5528b6aa5a01d17b814a44b6d884ee03f69)
This commit is contained in:
keldorkatarn
2017-09-12 04:53:59 +02:00
committed by Jonathan G Rennison
parent 1d3cf59d8a
commit e3b33b45c9
2 changed files with 2 additions and 6 deletions

View File

@@ -325,9 +325,7 @@ TileIndex Ship::GetOrderStationLocation(StationID station)
} else {
const Dock* dock = GetBestDock(this, st);
DiagDirection direction = GetInclinedSlopeDirection(GetTileSlope(dock->sloped));
direction = ReverseDiagDir(direction);
DiagDirection direction = DiagdirBetweenTiles(dock->sloped, dock->flat);
return dock->flat + TileOffsByDiagDir(direction);
}
} else {