Author: sveinung
Date: Thu Aug 11 02:20:42 2016
New Revision: 33556

URL: http://svn.gna.org/viewcvs/freeciv?rev=33556&view=rev
Log:
Forbid paradropping to same tile.

Forbid paradropping to the tile where the unit already is.

See patch #7581

Modified:
    trunk/common/actions.c
    trunk/doc/README.actions

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=33556&r1=33555&r2=33556&view=diff
==============================================================================
--- trunk/common/actions.c      (original)
+++ trunk/common/actions.c      Thu Aug 11 02:20:42 2016
@@ -225,7 +225,7 @@
   actions[ACTION_PARADROP] =
       action_new(ACTION_PARADROP, ATK_TILE,
                  FALSE, FALSE, TRUE,
-                 0, UNIT_MAX_PARADROP_RANGE);
+                 1, UNIT_MAX_PARADROP_RANGE);
   actions[ACTION_AIRLIFT] =
       action_new(ACTION_AIRLIFT, ATK_CITY,
                  FALSE, FALSE, TRUE,

Modified: trunk/doc/README.actions
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/doc/README.actions?rev=33556&r1=33555&r2=33556&view=diff
==============================================================================
--- trunk/doc/README.actions    (original)
+++ trunk/doc/README.actions    Thu Aug 11 02:20:42 2016
@@ -342,7 +342,7 @@
 
 "Paradrop Unit"
  * UI name can be set using ui_paradrop_unit
- * the distance between actor and target is paratroopers_range or less
+ * the distance between actor and target is from 1 to paratroopers_range
  * the actor unit hasn't paradropped this turn
  * the actor unit has paratroopers_mr_req moves left
  * the actor unit isn't transporting another unit (!)


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

Reply via email to