Author: sveinung
Date: Fri Jul 15 13:22:01 2016
New Revision: 33250

URL: http://svn.gna.org/viewcvs/freeciv?rev=33250&view=rev
Log:
Action decision becomes irrelevant with move.

Take an order to move to another tile as a reply to the question about what
action the unit should take. The unit may be unable to do anything to the
target tile from its new location.

See bug #24855

Modified:
    trunk/server/unittools.c

Modified: trunk/server/unittools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=33250&r1=33249&r2=33250&view=diff
==============================================================================
--- trunk/server/unittools.c    (original)
+++ trunk/server/unittools.c    Fri Jul 15 13:22:01 2016
@@ -3508,6 +3508,10 @@
     punit->done_moving = TRUE;
   }
 
+  /* No longer relevant. */
+  punit->action_decision_tile = NULL;
+  punit->action_decision_want = ACT_DEC_NOTHING;
+
   /* Claim ownership of fortress? */
   bowner = extra_owner(pdesttile);
   if ((bowner == NULL || pplayers_at_war(bowner, pplayer))


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

Reply via email to