From 0c342f3292af7dd5f563e5bd053ff01bdcd32582 Mon Sep 17 00:00:00 2001 From: belugas Date: Mon, 16 Jun 2008 17:28:15 +0000 Subject: (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 5cec2aac1..2dcf6b408 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -345,7 +345,7 @@ static void MenuClickLeague(int index) 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) -- cgit v1.2.3-54-g00ecf