summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
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
commitb08db89d3067a4db9112e530b9b123fd92580e2d (patch)
treebbc14069eacf6b67ec1e4ac28e526f987fbc4232 /src/toolbar_gui.cpp
parent18097d0461c957ec8627fe8c9094b8bdcb73e05f (diff)
downloadopenttd-b08db89d3067a4db9112e530b9b123fd92580e2d.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.
Diffstat (limited to 'src/toolbar_gui.cpp')
-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)