Author: jtn Date: Mon Apr 27 11:25:29 2015 New Revision: 28918 URL: http://svn.gna.org/viewcvs/freeciv?rev=28918&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_5/server/maphand.c Modified: branches/S2_5/server/maphand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/maphand.c?rev=28918&r1=28917&r2=28918&view=diff ============================================================================== --- branches/S2_5/server/maphand.c (original) +++ branches/S2_5/server/maphand.c Mon Apr 27 11:25:29 2015 @@ -2091,7 +2091,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