Author: sveinung
Date: Mon Mar  2 15:46:02 2015
New Revision: 28355

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

See patch #5869

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=28355&r1=28354&r2=28355&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Mon Mar  2 15:46:02 2015
@@ -848,6 +848,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