diff --git a/src/util/fairland.c b/src/util/fairland.c index a4c0c06a..7f58e025 100644 --- a/src/util/fairland.c +++ b/src/util/fairland.c @@ -99,6 +99,7 @@ #include #include +#include #include #include #include @@ -518,12 +519,15 @@ init(void) DRIFT THE CAPITALS UNTIL THEY ARE AS FAR AWAY FROM EACH OTHER AS POSSIBLE ****************************************************************************/ -/* How isolated is capital j? -*/ +/* + * How isolated is capital @j at @newx,@newy? + * Return the distance to the closest other capital. + */ static int iso(int j, int newx, int newy) { - int i, md, d = WORLD_X + WORLD_Y; + int d = INT_MAX; + int i, md; for (i = 0; i < nc; ++i) { if (i == j)