diff options
author | belugas <belugas@openttd.org> | 2008-06-16 17:28:15 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-06-16 17:28:15 +0000 |
commit | b08db89d3067a4db9112e530b9b123fd92580e2d (patch) | |
tree | bbc14069eacf6b67ec1e4ac28e526f987fbc4232 | |
parent | 18097d0461c957ec8627fe8c9094b8bdcb73e05f (diff) | |
download | openttd-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.
-rw-r--r-- | src/toolbar_gui.cpp | 2 |
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) |