(svn r10797) [NewGRF_ports] -Fix: Orientation needed re-initialising when airport selection changed. NewGRF_ports
authorrichk
Sun, 05 Aug 2007 17:30:37 +0000
branchNewGRF_ports
changeset 6757 60662379acb5
parent 6756 d50e91b1087d
child 6758 1545d187ab64
(svn r10797) [NewGRF_ports] -Fix: Orientation needed re-initialising when airport selection changed.
src/airport_gui.cpp
--- 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;