summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamu <dj_samu@hotmail.com>2020-01-06 16:16:10 +0000
committerCharles Pigott <charlespigott@googlemail.com>2020-01-06 23:20:35 +0000
commita0066ebca103fc71799a6009c40104a4ff4868fa (patch)
tree7404757c6c93bb9a6bc56560c332610eeaac158e
parenteb07e174f1db59184e64b5057ebccda1108a6485 (diff)
downloadopenttd-a0066ebca103fc71799a6009c40104a4ff4868fa.tar.xz
Cleanup: Remove unused parameter
-rw-r--r--src/ship_cmd.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 35edda113..1758454ad 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -501,10 +501,9 @@ static Track ChooseShipTrack(Ship *v, TileIndex tile, DiagDirection enterdir, Tr
* Get the available water tracks on a tile for a ship entering a tile.
* @param tile The tile about to enter.
* @param dir The entry direction.
- * @param trackdir The trackdir the ship has on the old tile.
* @return The available trackbits on the next tile.
*/
-static inline TrackBits GetAvailShipTracks(TileIndex tile, DiagDirection dir, Trackdir trackdir)
+static inline TrackBits GetAvailShipTracks(TileIndex tile, DiagDirection dir)
{
TrackBits tracks = GetTileShipTrackStatus(tile) & DiagdirReachesTracks(dir);
@@ -715,7 +714,7 @@ static void ShipController(Ship *v)
DiagDirection diagdir = DiagdirBetweenTiles(gp.old_tile, gp.new_tile);
assert(diagdir != INVALID_DIAGDIR);
- tracks = GetAvailShipTracks(gp.new_tile, diagdir, v->GetVehicleTrackdir());
+ tracks = GetAvailShipTracks(gp.new_tile, diagdir);
if (tracks == TRACK_BIT_NONE) goto reverse_direction;
/* Choose a direction, and continue if we find one */