Changeset - r9532:e8bc65d68960
[Not reviewed]
master
0 1 0
belugas - 16 years ago 2008-06-16 17:28:15
belugas@openttd.org
(svn r13536) -Codechange: Bit shifting is not really required when you know exactly the value to use.
Even more when it's a parameter.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -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)
0 comments (0 inline, 0 general)