summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-19 10:13:51 +0000
committerrubidium <rubidium@openttd.org>2007-02-19 10:13:51 +0000
commitc4ff0121c4afd9f2ca76de0e3209372fca22ec63 (patch)
treee63041d87b42f55a7afa6ae6e1256cba72b736b4
parente8ffb1599ccc7bc4cb14546d90ede67ad266ea9b (diff)
downloadopenttd-c4ff0121c4afd9f2ca76de0e3209372fca22ec63.tar.xz
(svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators.
-rw-r--r--src/viewport.cpp2
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: