(svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators.
authorrubidium
Mon, 19 Feb 2007 10:13:51 +0000
changeset 6401 b0018b42e6b9
parent 6400 7b98825c5cb0
child 6402 d8d29aef051f
(svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators.
src/viewport.cpp
--- a/src/viewport.cpp	Sun Feb 18 22:50:51 2007 +0000
+++ b/src/viewport.cpp	Mon Feb 19 10:13:51 2007 +0000
@@ -1595,7 +1595,7 @@
 {
 	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: