Mercurial > hg > openttd
diff src/station_cmd.cpp @ 6032:3f513357d37f draft
(svn r8755) -Fix
Abbreviate GetAirport(st->airport_type) to st->Airport()
author | tron <tron@openttd.org> |
---|---|
date | Fri, 16 Feb 2007 09:38:43 +0000 |
parents | 0b8944c960b5 |
children | d9b8ee9baa74 |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -557,7 +557,7 @@ } if (st->airport_tile != 0) { - const AirportFTAClass* afc = GetAirport(st->airport_type); + const AirportFTAClass* afc = st->Airport(); MergePoint(&rect, st->airport_tile); MergePoint(&rect, @@ -1679,14 +1679,13 @@ TileIndex tile; int w,h; int32 cost; - const AirportFTAClass* afc; if (_current_player != OWNER_WATER && !CheckOwnership(st->owner)) return CMD_ERROR; tile = st->airport_tile; - afc = GetAirport(st->airport_type); + const AirportFTAClass *afc = st->Airport(); w = afc->size_x; h = afc->size_y;