Author: sveinung
Date: Thu Jan 15 02:26:12 2015
New Revision: 27689

URL: http://svn.gna.org/viewcvs/freeciv?rev=27689&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:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=27689&r1=27688&r2=27689&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Thu Jan 15 02:26:12 2015
@@ -279,8 +279,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