Author: cazfi
Date: Sun Jun 12 10:51:26 2016
New Revision: 32835

URL: http://svn.gna.org/viewcvs/freeciv?rev=32835&view=rev
Log:
Do not allow player observer to start the game for the player.

See bug #24678

Modified:
    trunk/server/stdinhand.c

Modified: trunk/server/stdinhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/stdinhand.c?rev=32835&r1=32834&r2=32835&view=diff
==============================================================================
--- trunk/server/stdinhand.c    (original)
+++ trunk/server/stdinhand.c    Sun Jun 12 10:51:26 2016
@@ -5714,7 +5714,7 @@
       }
       start_game();
       return TRUE;
-    } else if (NULL == caller->playing || !caller->playing->is_connected) {
+    } else if (NULL == caller->playing || caller->observer) {
       /* A detached or observer player can't do /start. */
       return TRUE;
     } else {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to