forked from mirror/OpenTTD
(svn r3414) - Fix: Disable the Fund New Industry menu item and window when connected to a server as a spectator.
This commit is contained in:
@@ -791,7 +791,8 @@ static void ToolbarLeagueClick(Window *w)
|
||||
|
||||
static void ToolbarIndustryClick(Window *w)
|
||||
{
|
||||
PopupMainToolbMenu(w, 280, 12, STR_INDUSTRY_DIR, 2, 0);
|
||||
int dis = _current_player == OWNER_SPECTATOR ? 2 : 0;
|
||||
PopupMainToolbMenu(w, 280, 12, STR_INDUSTRY_DIR, 2, dis);
|
||||
}
|
||||
|
||||
static void ToolbarTrainClick(Window *w)
|
||||
|
Reference in New Issue
Block a user