diff options
author | peter1138 <peter1138@openttd.org> | 2006-12-04 13:20:14 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-12-04 13:20:14 +0000 |
commit | 7086936bab7dc7d7ab7715e3b57fb19ebc019367 (patch) | |
tree | 48ed569d7390688646294137a5f7c8cc0476bce2 | |
parent | 810e14cc21fdd1390c8ada0b66aa978c53b4a713 (diff) | |
download | openttd-7086936bab7dc7d7ab7715e3b57fb19ebc019367.tar.xz |
(svn r7351) -Fix (r6619): Disabled platform length and numbers were not reset for the default station.
-rw-r--r-- | rail_gui.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rail_gui.c b/rail_gui.c index b3e38e502..0a63a41f3 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -721,8 +721,11 @@ static void StationBuildWndProc(Window *w, WindowEvent *e) 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)); } |