diff options
Diffstat (limited to 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index 887fd70d2..28d04c0bc 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -57,10 +57,10 @@ int GetShipImage(const Vehicle *v, byte direction) return _ship_sprites[spritenum] + direction; } -static Depot *FindClosestShipDepot(Vehicle *v) +static const Depot* FindClosestShipDepot(const Vehicle* v) { - Depot *depot; - Depot *best_depot = NULL; + const Depot* depot; + const Depot* best_depot = NULL; uint dist; uint best_dist = (uint)-1; TileIndex tile; @@ -91,7 +91,7 @@ static Depot *FindClosestShipDepot(Vehicle *v) static void CheckIfShipNeedsService(Vehicle *v) { - Depot *depot; + const Depot* depot; if (_patches.servint_ships == 0) return; @@ -442,7 +442,7 @@ static void ShipEnterDepot(Vehicle *v) InvalidateWindowClasses(WC_SHIPS_LIST); } -static void ShipArrivesAt(Vehicle *v, Station *st) +static void ShipArrivesAt(const Vehicle* v, Station* st) { /* Check if station was ever visited before */ if (!(st->had_vehicle_of_type & HVOT_SHIP)) { |