Author: jtn Date: Mon Apr 27 11:13:17 2015 New Revision: 28904 URL: http://svn.gna.org/viewcvs/freeciv?rev=28904&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: trunk/server/maphand.c Modified: trunk/server/maphand.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/maphand.c?rev=28904&r1=28903&r2=28904&view=diff ============================================================================== --- trunk/server/maphand.c (original) +++ trunk/server/maphand.c Mon Apr 27 11:13:17 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