Mercurial > hg > openttd
changeset 6049:9b864f918735 draft
(svn r8779) -Fix
-Codechange: Use a more generic test, which tests the allowed aircraft instead of hardcoding the airport type numbers, to generate station names
author | tron <tron@openttd.org> |
---|---|
date | Sat, 17 Feb 2007 15:03:30 +0000 |
parents | 8ea5a4436c44 |
children | fcac24c6f1c9 |
files | src/station_cmd.cpp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1618,10 +1618,11 @@ st->sign.width_1 = 0; - // if airport type equals Heliport then generate - // type 5 name, which is heliport, otherwise airport names (1) - if (!GenerateStationName(st, tile, (p1 == AT_HELIPORT)||(p1 == AT_HELIDEPOT)||(p1 == AT_HELISTATION) ? 5 : 1)) + /* If only helicopters may use the airport generate a helicopter related (5) + * station name, otherwise generate a normal airport name (1) */ + if (!GenerateStationName(st, tile, !(afc->flags & AirportFTAClass::AIRPLANES) ? 5 : 1)) { return CMD_ERROR; + } } cost += _price.build_airport * w * h;