Another thing I always found hard to understand (squared radius?!) and hard to keep in mind when modding DB-files used to be "city surroundings data". To overcome this annoyance I created a small image as a memory card:

The image shows the city radii as the city grows. The numbers indicate the following:
The image shows the city radii as the city grows. The numbers indicate the following:
- first number: the INT-radius
- second number (T): number of tiles the radius comprises
- third number (SQ): the SQUARED radius. You shalt count diagonally from the center tile to the edge tile of the respective radius, which from int-radius 2 onwards already belongs to the next radius (to no mans land for the last radius), then you shalt multiply this number by 4 (not by 3, except you proceed to the 4 -- 5 is right out).
:
) you may pick any portion of surrounding tiles from MOD_SurroundingTiles[] you are interested in -- so it may be useable for very special situations (where you e.g. only want to examine the "north" and "south" tiles of the second ring -- which would be 8-10 and 14-16 -- or something like that ...).
Comment