Author: sveinung
Date: Thu Jan 15 02:30:49 2015
New Revision: 27691

URL: http://svn.gna.org/viewcvs/freeciv?rev=27691&view=rev
Log:
Tighten the heuristic used to determine if an actor may do a regular attack so 
the user will be told why no action is possible when regular attack too is 
illegal.

See patch #5710

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=27691&r1=27690&r2=27691&view=diff
==============================================================================
--- branches/S2_6/server/unithand.c     (original)
+++ branches/S2_6/server/unithand.c     Thu Jan 15 02:30:49 2015
@@ -272,8 +272,7 @@
     return TRUE;
   }
 
-  if (unit_attack_units_at_tile_result(actor_unit, target_tile)
-      == ATT_OK) {
+  if (can_unit_attack_tile(actor_unit, target_tile)) {
     /* Attack. Includes nuking. */
     return TRUE;
   }


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

Reply via email to