(svn r6520) -Fix r6515: "start all" and "stop all" buttons in depot windows are now disabled if you do not own the depot
authorbjarni
Wed, 27 Sep 2006 08:45:22 +0000
changeset 4644 22c723f7a095
parent 4643 5222493ced37
child 4645 f43486258c06
(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
--- a/depot_gui.c	Wed Sep 27 08:06:40 2006 +0000
+++ b/depot_gui.c	Wed Sep 27 08:45:22 2006 +0000
@@ -185,7 +185,8 @@
 
 	/* 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) {