From bfc670b4d98cde9a6e397769e259b43381bb7089 Mon Sep 17 00:00:00 2001 From: dominik Date: Sat, 8 Jan 2005 20:55:21 +0000 Subject: (svn r1435) Fix: [ 1094092 ] Toolbars accessible via keyboard in spectator mode --- dock_gui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'dock_gui.c') 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); } -- cgit v1.2.3-54-g00ecf