Changeset - r5231:c07e6ce2aba5
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-12-04 13:20:14
peter1138@openttd.org
(svn r7351) -Fix (r6619): Disabled platform length and numbers were not reset for the default station.
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rail_gui.c
Show inline comments
 
@@ -721,8 +721,11 @@ static void StationBuildWndProc(Window *
 
		if (newstations) {
 
			const StationSpec *statspec = GetCustomStationSpec(_railstation.station_class, _railstation.station_type);
 

	
 
			if (statspec != NULL) {
 
				for (bits = 0; bits < 7; bits++) {
 
			for (bits = 0; bits < 7; bits++) {
 
				if (statspec == NULL) {
 
					EnableWindowWidget(w, bits +  5);
 
					EnableWindowWidget(w, bits + 12);
 
				} else {
 
					SetWindowWidgetDisabledState(w, bits +  5, HASBIT(statspec->disallowed_platforms, bits));
 
					SetWindowWidgetDisabledState(w, bits + 12, HASBIT(statspec->disallowed_lengths,   bits));
 
				}
0 comments (0 inline, 0 general)