Author: sveinung
Date: Sun May 17 10:39:08 2015
New Revision: 29100

URL: http://svn.gna.org/viewcvs/freeciv?rev=29100&view=rev
Log:
Don't set done_moving when executing a move order.

The next order may not need any move fragments.

See bug #23594

Modified:
    trunk/server/unittools.c

Modified: trunk/server/unittools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=29100&r1=29099&r2=29100&view=diff
==============================================================================
--- trunk/server/unittools.c    (original)
+++ trunk/server/unittools.c    Sun May 17 10:39:08 2015
@@ -3434,7 +3434,8 @@
   /* Move magic. */
   punit->moved = TRUE;
   punit->moves_left = MAX(0, punit->moves_left - move_cost);
-  if (punit->moves_left == 0) {
+  if (punit->moves_left == 0 && !unit_has_orders(punit)) {
+    /* The next order may not require any remaining move fragments. */
     punit->done_moving = TRUE;
   }
 


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

Reply via email to