summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-16 17:28:15 +0000
committerbelugas <belugas@openttd.org>2008-06-16 17:28:15 +0000
commit0c342f3292af7dd5f563e5bd053ff01bdcd32582 (patch)
treebbc14069eacf6b67ec1e4ac28e526f987fbc4232
parentf1cecb17956692cce49cfbbdb278e9755788e3e3 (diff)
downloadopenttd-0c342f3292af7dd5f563e5bd053ff01bdcd32582.tar.xz
(svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
Even more when it's a parameter.
-rw-r--r--src/toolbar_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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)