Author: sveinung
Date: Sun Sep 11 04:35:15 2016
New Revision: 33774

URL: http://svn.gna.org/viewcvs/freeciv?rev=33774&view=rev
Log:
Clarify the max range of paradrop and airlift.

The action "Airlift Unit" has no maximum range. Specify it by using
ACTION_DISTANCE_UNLIMITED.

The action "Paradrop Unit" is still limited by the unit type's
paratroopers_range field. Explain this in a comment.

See patch #7676

Modified:
    trunk/common/actions.c

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=33774&r1=33773&r2=33774&view=diff
==============================================================================
--- trunk/common/actions.c      (original)
+++ trunk/common/actions.c      Sun Sep 11 04:35:15 2016
@@ -227,11 +227,14 @@
   actions[ACTION_PARADROP] =
       action_new(ACTION_PARADROP, ATK_TILE,
                  FALSE, FALSE, TRUE,
-                 1, ACTION_DISTANCE_MAX);
+                 1,
+                 /* Still limited by each unit type's paratroopers_range
+                  * field. */
+                 ACTION_DISTANCE_MAX);
   actions[ACTION_AIRLIFT] =
       action_new(ACTION_AIRLIFT, ATK_CITY,
                  FALSE, FALSE, TRUE,
-                 1, ACTION_DISTANCE_MAX);
+                 1, ACTION_DISTANCE_UNLIMITED);
   actions[ACTION_ATTACK] =
       action_new(ACTION_ATTACK,
                  /* FIXME: Target is actually City and, depending on the


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

Reply via email to