Author: sveinung
Date: Fri Mar 10 11:37:15 2017
New Revision: 35089

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

Almost all units are actors in 3.0 and later.

See hrm Feature #643196

Modified:
    branches/S3_0/server/unithand.c

Modified: branches/S3_0/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/unithand.c?rev=35089&r1=35088&r2=35089&view=diff
==============================================================================
--- branches/S3_0/server/unithand.c     (original)
+++ branches/S3_0/server/unithand.c     Fri Mar 10 11:37:15 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