Author: sveinung
Date: Thu Aug 11 02:24:48 2016
New Revision: 33560

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

Forbid paradropping to the tile where the unit already is.

See patch #7581

Modified:
    branches/S2_6/server/unittools.c

Modified: branches/S2_6/server/unittools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unittools.c?rev=33560&r1=33559&r2=33560&view=diff
==============================================================================
--- branches/S2_6/server/unittools.c    (original)
+++ branches/S2_6/server/unittools.c    Thu Aug 11 02:24:48 2016
@@ -2694,6 +2694,10 @@
                     "is greater than the unit's range (%i)."),
                   distance, range);
     return FALSE;
+  } else if (distance < 1) {
+    notify_player(pplayer, ptile, E_BAD_COMMAND, ftc_server,
+                  _("Already here."));
+    return FALSE;
   }
 
   if (map_is_known_and_seen(ptile, pplayer, V_MAIN)) {


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

Reply via email to