Author: sveinung
Date: Mon Mar  2 16:01:14 2015
New Revision: 28357

URL: http://svn.gna.org/viewcvs/freeciv?rev=28357&view=rev
Log:
Make all enabler controlled actions respect unitwaittime.

See patch #5869

Modified:
    branches/S2_6/server/unithand.c

Modified: branches/S2_6/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unithand.c?rev=28357&r1=28356&r2=28357&view=diff
==============================================================================
--- branches/S2_6/server/unithand.c     (original)
+++ branches/S2_6/server/unithand.c     Mon Mar  2 16:01:14 2015
@@ -805,6 +805,11 @@
     /* Shouldn't happen */
     log_error("handle_unit_do_action() %s (%d) is not an actor unit",
               unit_rule_name(actor_unit), actor_id);
+    return;
+  }
+
+  if (!unit_can_do_action_now(actor_unit)) {
+    /* Action not possible due to unitwaittime setting. */
     return;
   }
 


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

Reply via email to