Simplify direction lookup to also work for oil rigs.
(cherry picked from commit acbff5528b6aa5a01d17b814a44b6d884ee03f69)
This commit is contained in:

committed by
Jonathan G Rennison

parent
1d3cf59d8a
commit
e3b33b45c9
@@ -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 {
|
||||
|
Reference in New Issue
Block a user