summaryrefslogtreecommitdiff
path: root/dock_gui.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-08 20:55:21 +0000
committerdominik <dominik@openttd.org>2005-01-08 20:55:21 +0000
commitbfc670b4d98cde9a6e397769e259b43381bb7089 (patch)
tree36cb008fcecb4e0072ca91647b8df5307f614a82 /dock_gui.c
parent4b6a846d9cfc3619a4477bbfa8bca9bbe2c5baa1 (diff)
downloadopenttd-bfc670b4d98cde9a6e397769e259b43381bb7089.tar.xz
(svn r1435) Fix: [ 1094092 ] Toolbars accessible via keyboard in spectator mode
Diffstat (limited to 'dock_gui.c')
-rw-r--r--dock_gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dock_gui.c b/dock_gui.c
index f7fd23af4..d84547635 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -204,6 +204,7 @@ static const WindowDesc _build_docks_toolbar_desc = {
void ShowBuildDocksToolbar()
{
+ if (_current_player == OWNER_SPECTATOR) return;
DeleteWindowById(WC_BUILD_TOOLBAR, 0);
AllocateWindowDesc(&_build_docks_toolbar_desc);
}