diff options
author | yexo <yexo@openttd.org> | 2010-03-18 21:02:20 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-03-18 21:02:20 +0000 |
commit | c4a88ce0225a57243a79e28d133c2ecd884bee68 (patch) | |
tree | 766e1e5469d2c9d2956f5d6c79fd5bba787cf2ca /src/ai/api/ai_town.cpp | |
parent | 0eb5709c86f8dbfdcf7f91a178e46be4a1bc53d0 (diff) | |
download | openttd-c4a88ce0225a57243a79e28d133c2ecd884bee68.tar.xz |
(svn r19455) -Codechange: split all airport information in Station to a seperate class
Diffstat (limited to 'src/ai/api/ai_town.cpp')
-rw-r--r-- | src/ai/api/ai_town.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_town.cpp b/src/ai/api/ai_town.cpp index 7f8dc3090..a11e374e8 100644 --- a/src/ai/api/ai_town.cpp +++ b/src/ai/api/ai_town.cpp @@ -188,7 +188,7 @@ int num = 0; const Station *st; FOR_ALL_STATIONS(st) { - if (st->town == t && (st->facilities & FACIL_AIRPORT) && st->airport_type != AT_OILRIG) num++; + if (st->town == t && (st->facilities & FACIL_AIRPORT) && st->airport.type != AT_OILRIG) num++; } return max(0, 2 - num); } |