From 76364235ea50dafcf5fb36670ad87cdea28b9d31 Mon Sep 17 00:00:00 2001 From: bjarni Date: Wed, 27 Sep 2006 08:45:22 +0000 Subject: [PATCH] (svn r6520) -Fix r6515: "start all" and "stop all" buttons in depot windows are now disabled if you do not own the depot --- depot_gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/depot_gui.c b/depot_gui.c index 927ed8e915..04858fbed3 100644 --- a/depot_gui.c +++ b/depot_gui.c @@ -185,7 +185,8 @@ static void DrawDepotWindow(Window *w) /* setup disabled buttons */ w->disabled_state = - IsTileOwner(tile, _local_player) ? 0 : ((1 << DEPOT_WIDGET_SELL) | (1 << DEPOT_WIDGET_SELL_ALL) | (1 << DEPOT_WIDGET_BUILD) | (1 << DEPOT_WIDGET_CLONE)); + IsTileOwner(tile, _local_player) ? 0 : ( (1 << DEPOT_WIDGET_STOP_ALL) | (1 << DEPOT_WIDGET_START_ALL) | + (1 << DEPOT_WIDGET_SELL) | (1 << DEPOT_WIDGET_SELL_ALL) | (1 << DEPOT_WIDGET_BUILD) | (1 << DEPOT_WIDGET_CLONE)); /* determine amount of items for scroller */ if (WP(w, depot_d).type == VEH_Train) {