From 1f4889e38a220c61bca4374426683a8cf8cb8c8b Mon Sep 17 00:00:00 2001 From: glx Date: Fri, 28 Sep 2007 00:34:10 +0000 Subject: (svn r11178) -Fix: don't check newgrf callback 22 in scenario editor --- src/industry_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 79b9e1e51..70160936d 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -118,7 +118,7 @@ static void BuildDynamicIndustryWndProc(Window *w, WindowEvent *e) indsp = GetIndustrySpec(ind); if (indsp->enabled && (!indsp->IsRawIndustry() || _game_mode == GM_EDITOR)) { _fund_gui.index[_fund_gui.count] = ind; - _fund_gui.enabled[_fund_gui.count] = CheckIfCallBackAllowsAvailability(ind, IACT_USERCREATION); + _fund_gui.enabled[_fund_gui.count] = (_game_mode == GM_EDITOR) || CheckIfCallBackAllowsAvailability(ind, IACT_USERCREATION); _fund_gui.count++; } } @@ -128,7 +128,7 @@ static void BuildDynamicIndustryWndProc(Window *w, WindowEvent *e) indsp = GetIndustrySpec(ind); if (indsp->enabled && indsp->IsRawIndustry()) { _fund_gui.index[_fund_gui.count] = ind; - _fund_gui.enabled[_fund_gui.count] = CheckIfCallBackAllowsAvailability(ind, IACT_USERCREATION); + _fund_gui.enabled[_fund_gui.count] = (_game_mode == GM_EDITOR) || CheckIfCallBackAllowsAvailability(ind, IACT_USERCREATION); _fund_gui.count++; } } -- cgit v1.2.3-70-g09d2