diff options
author | dominik <dominik@openttd.org> | 2005-01-08 20:55:21 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2005-01-08 20:55:21 +0000 |
commit | b2063e21504045df55e3dd3d74c2e5668a8844e4 (patch) | |
tree | 36cb008fcecb4e0072ca91647b8df5307f614a82 /dock_gui.c | |
parent | a4aa201b2fcd162a182aa2e8107ff9bea263115f (diff) | |
download | openttd-b2063e21504045df55e3dd3d74c2e5668a8844e4.tar.xz |
(svn r1435) Fix: [ 1094092 ] Toolbars accessible via keyboard in spectator mode
Diffstat (limited to 'dock_gui.c')
-rw-r--r-- | dock_gui.c | 1 |
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); } |