(svn r6801) - Fix (r6619): Always disable the train refit button. It will be enabled later if refitting is possible.

This commit is contained in:
peter1138 2006-10-17 17:10:39 +00:00
parent c758f7d812
commit c88f7b0138

View File

@ -763,9 +763,11 @@ static void TrainViewWndProc(Window *w, WindowEvent *e)
SetWindowWidgetDisabledState(w, 7, !is_localplayer); SetWindowWidgetDisabledState(w, 7, !is_localplayer);
SetWindowWidgetDisabledState(w, 8, !is_localplayer); SetWindowWidgetDisabledState(w, 8, !is_localplayer);
SetWindowWidgetDisabledState(w, 9, !is_localplayer); SetWindowWidgetDisabledState(w, 9, !is_localplayer);
SetWindowWidgetDisabledState(w, 12, !is_localplayer);
SetWindowWidgetDisabledState(w, 13, !is_localplayer); SetWindowWidgetDisabledState(w, 13, !is_localplayer);
/* Disable cargo refit button, until we know we can enable it below. */
DisableWindowWidget(w, 12);
if (is_localplayer) { if (is_localplayer) {
/* See if any vehicle can be refitted */ /* See if any vehicle can be refitted */
for (u = v; u != NULL; u = u->next) { for (u = v; u != NULL; u = u->next) {