summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-09-28 00:34:10 +0000
committerglx <glx@openttd.org>2007-09-28 00:34:10 +0000
commit9613a9988cc0ed3209d3b3a89952d9e9e04226f5 (patch)
tree333b0c21596c621ea5c109b15f9e4fdf762038e6 /src
parent52f10b2fbdb1172eb1feaa12fb691f091c0f91b5 (diff)
downloadopenttd-9613a9988cc0ed3209d3b3a89952d9e9e04226f5.tar.xz
(svn r11178) -Fix: don't check newgrf callback 22 in scenario editor
Diffstat (limited to 'src')
-rw-r--r--src/industry_gui.cpp4
1 files 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++;
}
}