Author: sveinung
Date: Thu Mar  9 21:41:13 2017
New Revision: 35084

URL: http://svn.gna.org/viewcvs/freeciv?rev=35084&view=rev
Log:
Remove obsolete optimization.

Almost all units are actors in 3.0 and later.

See hrm Feature #643196

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=35084&r1=35083&r2=35084&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Thu Mar  9 21:41:13 2017
@@ -3596,8 +3596,7 @@
    * For tiles occupied by allied cities or units, keep moving if
    * move_do_not_act tells us to, or if the unit is on goto and the tile
    * is not the final destination. */
-  if (!move_do_not_act
-      && utype_may_act_at_all(unit_type_get(punit))) {
+  if (!move_do_not_act) {
     const bool can_not_move = !unit_can_move_to_tile(punit, pdesttile,
                                                      igzoc, FALSE);
     struct tile *ttile = action_tgt_tile(punit, pdesttile, can_not_move);


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

Reply via email to