Author: sveinung
Date: Fri Jul 15 13:32:12 2016
New Revision: 33253

URL: http://svn.gna.org/viewcvs/freeciv?rev=33253&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:
    branches/S2_6/server/unittools.c

Modified: branches/S2_6/server/unittools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unittools.c?rev=33253&r1=33252&r2=33253&view=diff
==============================================================================
--- branches/S2_6/server/unittools.c    (original)
+++ branches/S2_6/server/unittools.c    Fri Jul 15 13:32:12 2016
@@ -3465,6 +3465,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