diff options
author | celestar <celestar@openttd.org> | 2007-02-13 15:42:52 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-02-13 15:42:52 +0000 |
commit | 8eab3964b4ad7ebe0151aa292d42d74400214f4a (patch) | |
tree | 97f07e8c9bbb7b74d420386b638d4c6d8944d7a7 /src/aircraft_cmd.cpp | |
parent | 6f68ac46b8c603b23123b5d899afa6988836f497 (diff) | |
download | openttd-8eab3964b4ad7ebe0151aa292d42d74400214f4a.tar.xz |
(svn r8707) -Codechange: Turn IsValidStation into a method of Station
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index f3d990eaa..7ff79b500 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -558,7 +558,7 @@ int32 CmdSendAircraftToHangar(TileIndex tile, uint32 flags, uint32 p1, uint32 p2 StationID next_airport_index = v->u.air.targetairport; const Station *st = GetStation(next_airport_index); /* If the station is not a valid airport or if it has no hangars */ - if (!IsValidStation(st) || st->airport_tile == 0 || GetAirport(st->airport_type)->nof_depots == 0) { + if (!st->IsValid() || st->airport_tile == 0 || GetAirport(st->airport_type)->nof_depots == 0) { StationID station; // the aircraft has to search for a hangar on its own @@ -695,7 +695,7 @@ static void CheckIfAircraftNeedsService(Vehicle *v) st = GetStation(v->current_order.dest); // only goto depot if the target airport has terminals (eg. it is airport) - if (IsValidStation(st) && st->airport_tile != 0 && GetAirport(st->airport_type)->terminals != NULL) { + if (st->IsValid() && st->airport_tile != 0 && GetAirport(st->airport_type)->terminals != NULL) { // printf("targetairport = %d, st->index = %d\n", v->u.air.targetairport, st->index); // v->u.air.targetairport = st->index; v->current_order.type = OT_GOTO_DEPOT; |