diff options
author | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
commit | ee15e3de13643b2d09abcc5424bf8e2d916cff75 (patch) | |
tree | 385ce09aff7cf19e072a627e83e91fe8a5f3fb3b /ship_cmd.c | |
parent | 59e885c2bff5b1af6d7f5473106e9aa1f562abfd (diff) | |
download | openttd-ee15e3de13643b2d09abcc5424bf8e2d916cff75.tar.xz |
(svn r3172) static, const
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)) { |