diff options
author | tron <tron@openttd.org> | 2007-02-10 08:19:39 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-10 08:19:39 +0000 |
commit | 356e47f1087b56244694a646eb73ee6c9264a229 (patch) | |
tree | e8a4f43e2fa50f6e1637a184752b1ce7c9f43a9c /src/engine.cpp | |
parent | b4592c8a542c06f4509402ebac846a44775740c9 (diff) | |
download | openttd-356e47f1087b56244694a646eb73ee6c9264a229.tar.xz |
(svn r8660) -Fix
-Codechange: Remove _avail_aircraft
Its name is misleading. It is rather _avail_airports, but then only some of them, which leads to inconsistencies when using it.
Further it is unnecessary to store it in savegams.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 34f8de113..af9794b72 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -69,18 +69,6 @@ static void SetupEngineNames(void) LoadCustomEngineNames(); } -static void AdjustAvailAircraft(void) -{ - byte avail = 0; - if (_cur_year >= 1955) avail |= 2; // big airport - if (_cur_year < 1960 || _patches.always_small_airport) avail |= 1; // small airport - if (_cur_year >= 1963) avail |= 4; // enable heliport - - if (avail != _avail_aircraft) { - _avail_aircraft = avail; - InvalidateWindow(WC_BUILD_STATION, 0); - } -} static void CalcEngineReliability(Engine *e) { @@ -178,8 +166,6 @@ void StartupEngines(void) * but using this, you can ask what type an engine number is * even if it is not a vehicle (yet)*/ } - - AdjustAvailAircraft(); } static void AcceptEnginePreview(EngineID eid, PlayerID player) @@ -371,7 +357,6 @@ void EnginesMonthlyLoop(void) } } } - AdjustAvailAircraft(); } /** Rename an engine. |