<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40563 >

It seems that done_moving is not reset after the unit orders are
cleared, which is especially annoying when the unit still have moves
left (e.g. with waiting).

Index: server/unithand.c
===================================================================
--- server/unithand.c	(révision 15312)
+++ server/unithand.c	(copie de travail)
@@ -2024,6 +2024,8 @@
   }
 
   free_unit_orders(punit);
+  /* If we waited on a tile, reset punit->done_moving */
+  punit->done_moving = (punit->moves_left > 0);
 
   if (packet->length == 0) {
     assert(!unit_has_orders(punit));
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to