Author: cazfi
Date: Thu Nov 13 19:37:12 2014
New Revision: 27033

URL: http://svn.gna.org/viewcvs/freeciv?rev=27033&view=rev
Log:
Observer client does not try to autoplace spaceship parts.

See bug #22933

Modified:
    trunk/client/packhand.c

Modified: trunk/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=27033&r1=27032&r2=27033&view=diff
==============================================================================
--- trunk/client/packhand.c     (original)
+++ trunk/client/packhand.c     Thu Nov 13 19:37:12 2014
@@ -2528,12 +2528,14 @@
 static bool spaceship_autoplace(struct player *pplayer,
                               struct player_spaceship *ship)
 {
-  struct spaceship_component place;
-
-  if (next_spaceship_component(pplayer, ship, &place)) {
-    dsend_packet_spaceship_place(&client.conn, place.type, place.num);
-
-    return TRUE;
+  if (can_client_issue_orders()) {
+    struct spaceship_component place;
+
+    if (next_spaceship_component(pplayer, ship, &place)) {
+      dsend_packet_spaceship_place(&client.conn, place.type, place.num);
+
+      return TRUE;
+    }
   }
 
   return FALSE;


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

Reply via email to