diff options
author | rubidium <rubidium@openttd.org> | 2007-02-19 10:13:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-19 10:13:51 +0000 |
commit | 5011997f69e9de0c1d72b809c50b8e50fb5a58c2 (patch) | |
tree | e63041d87b42f55a7afa6ae6e1256cba72b736b4 | |
parent | 8dae4e45ac087f9716d99213b3d16a6312e8e68f (diff) | |
download | openttd-5011997f69e9de0c1d72b809c50b8e50fb5a58c2.tar.xz |
(svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators.
-rw-r--r-- | src/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 04cdca236..edba8cd94 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1595,7 +1595,7 @@ static bool CheckClickOnSign(const ViewPort *vp, int x, int y) { const Sign *si; - if (!(_display_opt & DO_SHOW_SIGNS)) return false; + if (!(_display_opt & DO_SHOW_SIGNS) || _current_player == PLAYER_SPECTATOR) return false; switch (vp->zoom) { case 0: |