Enable funding window in toolbar menu for spectators
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include "widgets/airport_widget.h"
|
||||
|
||||
#include "citymania/cm_hotkeys.hpp"
|
||||
#include "citymania/station_ui.hpp"
|
||||
#include "citymania/cm_station_gui.hpp"
|
||||
|
||||
#include "safeguards.h"
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <bitset>
|
||||
|
||||
#include "citymania/cm_hotkeys.hpp"
|
||||
#include "citymania/highlight.hpp"
|
||||
#include "citymania/cm_highlight.hpp"
|
||||
|
||||
#include "safeguards.h"
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "widgets/rail_widget.h"
|
||||
|
||||
#include "citymania/cm_hotkeys.hpp"
|
||||
#include "citymania/station_ui.hpp"
|
||||
#include "citymania/cm_station_gui.hpp"
|
||||
|
||||
#include "safeguards.h"
|
||||
|
||||
|
||||
@@ -787,7 +787,9 @@ static CallBackFunction MenuClickLeague(int index)
|
||||
static CallBackFunction ToolbarIndustryClick(Window *w)
|
||||
{
|
||||
/* Disable build-industry menu if we are a spectator */
|
||||
PopupMainToolbMenu(w, WID_TN_INDUSTRIES, STR_INDUSTRY_MENU_INDUSTRY_DIRECTORY, (_local_company == COMPANY_SPECTATOR) ? 2 : 3);
|
||||
// CM don't disable
|
||||
// PopupMainToolbMenu(w, WID_TN_INDUSTRIES, STR_INDUSTRY_MENU_INDUSTRY_DIRECTORY, (_local_company == COMPANY_SPECTATOR) ? 2 : 3);
|
||||
PopupMainToolbMenu(w, WID_TN_INDUSTRIES, STR_INDUSTRY_MENU_INDUSTRY_DIRECTORY, 3);
|
||||
return CBF_NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user