(svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
authorbelugas
Mon, 16 Jun 2008 17:28:15 +0000
changeset 10982 e8358ed0f98e
parent 10981 20a58e431c29
child 10983 e734f891d1f6
(svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
Even more when it's a parameter.
src/toolbar_gui.cpp
--- a/src/toolbar_gui.cpp	Mon Jun 16 17:10:55 2008 +0000
+++ b/src/toolbar_gui.cpp	Mon Jun 16 17:28:15 2008 +0000
@@ -345,7 +345,7 @@
 static void ToolbarIndustryClick(Window *w)
 {
 	/* Disable build-industry menu if we are a spectator */
-	PopupMainToolbMenu(w, 12, STR_INDUSTRY_DIR, 2, (_current_player == PLAYER_SPECTATOR) ? (1 << 1) : 0);
+	PopupMainToolbMenu(w, 12, STR_INDUSTRY_DIR, 2, (_current_player == PLAYER_SPECTATOR) ? 2 : 0);
 }
 
 static void MenuClickIndustry(int index)