Author: jtn
Date: Mon Apr 27 11:24:11 2015
New Revision: 28912

URL: http://svn.gna.org/viewcvs/freeciv?rev=28912&view=rev
Log:
Fix bug which meant the set of tiles which cannot be stolen from a
city was not centred on the city.

After a report by Robin Patterson.

See gna bug #23501.

Modified:
    branches/S2_6/server/maphand.c

Modified: branches/S2_6/server/maphand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/maphand.c?rev=28912&r1=28911&r2=28912&view=diff
==============================================================================
--- branches/S2_6/server/maphand.c      (original)
+++ branches/S2_6/server/maphand.c      Mon Apr 27 11:24:11 2015
@@ -2010,7 +2010,7 @@
         map_distance_vector(&city_x, &city_y, ccity->tile, dtile);
 
         if (is_valid_city_coords(city_map_radius_sq_get(ccity),
-            CITY_ABS2REL(city_x), CITY_ABS2REL(city_y))) {
+            CITY_REL2ABS(city_x), CITY_REL2ABS(city_y))) {
           /* Tile is within squared city radius */
           continue;
         }


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

Reply via email to