(svn r10797) [NewGRF_ports] -Fix: Orientation needed re-initialising when airport selection changed.
--- a/src/airport_gui.cpp Sun Aug 05 17:08:40 2007 +0000
+++ b/src/airport_gui.cpp Sun Aug 05 17:30:37 2007 +0000
@@ -322,6 +322,7 @@
GetFSMportsCallback(CBID_STATION_AVAILABILITY, 0, 0, fsmportspec, NULL, INVALID_TILE) == 0) return;
_airport.station_type = y;
+ _airport.orientation = 0;
_airport.platlength= fsmportspec->size_y[_airport.orientation];
_airport.numtracks = fsmportspec->size_x[_airport.orientation];
_airport.newstation_selected = true;
@@ -347,6 +348,7 @@
if (_airport.fsmports_class != e->we.dropdown.index) {
_airport.fsmports_class = (FSMportsClassID)e->we.dropdown.index;
_airport.station_type = 0;
+ _airport.orientation = 0;
_airport.station_count = GetNumCustomFSMports(_airport.fsmports_class);
w->vscroll.count = _airport.station_count;