summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-17 17:10:39 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-17 17:10:39 +0000
commitc88f7b01381f860ad38bce25e8e6feb568376fad (patch)
tree1076b1548f478b91232138eadb55441ac6456b44 /train_gui.c
parentc758f7d812af5b3421938ad0c11ff865d0f5f04b (diff)
downloadopenttd-c88f7b01381f860ad38bce25e8e6feb568376fad.tar.xz
(svn r6801) - Fix (r6619): Always disable the train refit button. It will be enabled later if refitting is possible.
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c
index 53f761911..6e49831d2 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -763,9 +763,11 @@ static void TrainViewWndProc(Window *w, WindowEvent *e)
SetWindowWidgetDisabledState(w, 7, !is_localplayer);
SetWindowWidgetDisabledState(w, 8, !is_localplayer);
SetWindowWidgetDisabledState(w, 9, !is_localplayer);
- SetWindowWidgetDisabledState(w, 12, !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) {
/* See if any vehicle can be refitted */
for (u = v; u != NULL; u = u->next) {