main_gui.c
changeset 2866 23cf6ec995b1
parent 2828 342f02f7c0d4
child 2951 2de6d3a59743
--- a/main_gui.c	Sat Jan 21 20:34:17 2006 +0000
+++ b/main_gui.c	Sat Jan 21 21:45:34 2006 +0000
@@ -791,7 +791,8 @@
 
 static void ToolbarIndustryClick(Window *w)
 {
-	PopupMainToolbMenu(w, 280, 12, STR_INDUSTRY_DIR, 2, 0);
+	int dis = _current_player == OWNER_SPECTATOR ? 2 : 0;
+	PopupMainToolbMenu(w, 280, 12, STR_INDUSTRY_DIR, 2, dis);
 }
 
 static void ToolbarTrainClick(Window *w)