summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-21 21:45:34 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-21 21:45:34 +0000
commitd13763a9c4cce6ef81bb333cec241d9d7dcc633e (patch)
treecd9a4d06a2b5d27d17ecd6efb392c5053eadd900 /industry_gui.c
parentd22e8c636d98187b854f3de3a61a3c2ed5f11105 (diff)
downloadopenttd-d13763a9c4cce6ef81bb333cec241d9d7dcc633e.tar.xz
(svn r3414) - Fix: Disable the Fund New Industry menu item and window when connected to a server as a spectator.
Diffstat (limited to 'industry_gui.c')
-rw-r--r--industry_gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/industry_gui.c b/industry_gui.c
index 10b2c5d3d..24decb00c 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -267,6 +267,7 @@ static const WindowDesc * const _industry_window_desc[2][4] = {
void ShowBuildIndustryWindow(void)
{
+ if (_current_player == OWNER_SPECTATOR) return;
AllocateWindowDescFront(_industry_window_desc[_patches.build_rawmaterial_ind][_opt_ptr->landscape],0);
}