mirror of https://github.com/OpenTTD/OpenTTD
(svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
Even more when it's a parameter.release/0.7
parent
f1cecb1795
commit
0c342f3292
|
@ -345,7 +345,7 @@ static void MenuClickLeague(int index)
|
||||||
static void ToolbarIndustryClick(Window *w)
|
static void ToolbarIndustryClick(Window *w)
|
||||||
{
|
{
|
||||||
/* Disable build-industry menu if we are a spectator */
|
/* 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)
|
static void MenuClickIndustry(int index)
|
||||||
|
|
Loading…
Reference in New Issue