1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-22 14:09:10 +00:00

(svn r3172) static, const

This commit is contained in:
tron
2005-11-13 13:43:55 +00:00
parent 59e885c2bf
commit ee15e3de13
31 changed files with 132 additions and 131 deletions

View File

@@ -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)) {