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 /airport_gui.c | |
parent | a4aa201b2fcd162a182aa2e8107ff9bea263115f (diff) | |
download | openttd-b2063e21504045df55e3dd3d74c2e5668a8844e4.tar.xz |
(svn r1435) Fix: [ 1094092 ] Toolbars accessible via keyboard in spectator mode
Diffstat (limited to 'airport_gui.c')
-rw-r--r-- | airport_gui.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/airport_gui.c b/airport_gui.c index d0194c529..b38e19057 100644 --- a/airport_gui.c +++ b/airport_gui.c @@ -126,6 +126,7 @@ static const WindowDesc _air_toolbar_desc = { void ShowBuildAirToolbar() { + if (_current_player == OWNER_SPECTATOR) return; DeleteWindowById(WC_BUILD_TOOLBAR, 0); AllocateWindowDescFront(&_air_toolbar_desc, 0); } |