From b5f433bf4cbbbb45d8487d04d2492ed7e269823d Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 20 May 2006 15:13:27 +0000 Subject: (svn r4918) Move the information about the size of airports from an global array into the struct which describes an airport --- ai/default/default.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ai/default') diff --git a/ai/default/default.c b/ai/default/default.c index b0915f10a..4b1bcfc92 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -3328,8 +3328,9 @@ static bool AiCheckAirportResources(TileIndex tile, const AiDefaultBlockData *p, for (; p->mode == 0; p++) { TileIndex tile2 = TILE_ADD(tile, ToTileIndexDiff(p->tileoffs)); - uint w = _airport_size_x[p->attr]; - uint h = _airport_size_y[p->attr]; + const AirportFTAClass* airport = GetAirport(p->attr); + uint w = airport->size_x; + uint h = airport->size_y; if (cargo & 0x80) { GetProductionAroundTiles(values, tile2, w, h, rad); -- cgit v1.2.3-70-g09d2