diff options
author | bjarni <bjarni@openttd.org> | 2006-09-27 08:45:22 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-27 08:45:22 +0000 |
commit | 76364235ea50dafcf5fb36670ad87cdea28b9d31 (patch) | |
tree | 46e845c8b8d6daea9b116041dc492c1b30e4dc8c | |
parent | 98c23dac75f159626f330908cd4311df6819252b (diff) | |
download | openttd-76364235ea50dafcf5fb36670ad87cdea28b9d31.tar.xz |
(svn r6520) -Fix r6515: "start all" and "stop all" buttons in depot windows are now disabled if you do not own the depot
-rw-r--r-- | depot_gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/depot_gui.c b/depot_gui.c index 927ed8e91..04858fbed 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) { |