forked from mirror/OpenTTD
(svn r18370) -Codechange: push some constness/type strictness into the ship pathfinders
This commit is contained in:
@@ -362,7 +362,7 @@ static void ShipArrivesAt(const Vehicle *v, Station *st)
|
||||
/** returns the track to choose on the next tile, or -1 when it's better to
|
||||
* reverse. The tile given is the tile we are about to enter, enterdir is the
|
||||
* direction in which we are entering the tile */
|
||||
static Track ChooseShipTrack(Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks)
|
||||
static Track ChooseShipTrack(const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks)
|
||||
{
|
||||
assert(IsValidDiagDirection(enterdir));
|
||||
|
||||
|
Reference in New Issue
Block a user