On the North and East sides of a megaregion, only consider regions within 256m to be neighbours rather than regions up to 512 distant.

This looks like an off-by-one bug since the view distance was already only 256 on the west and south sides.
This reduces the number of child agents being logged into regions neighbouring a megaregion.