From c4ff0121c4afd9f2ca76de0e3209372fca22ec63 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 19 Feb 2007 10:13:51 +0000 Subject: [PATCH] (svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators. --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewport.cpp b/src/viewport.cpp index 04cdca236a..edba8cd94e 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: