fairland: Global variable @mind is write-only, drop

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2020-07-25 09:22:35 +02:00
parent ee318d8e9e
commit b71abefaf0

View file

@ -185,8 +185,6 @@ static int *capx, *capy; /* location of the nc capitals */
static int *mc, mcc; /* array and counter used for stability static int *mc, mcc; /* array and counter used for stability
check when perturbing */ check when perturbing */
static int spike; /* are we spiking? */ static int spike; /* are we spiking? */
static int mind; /* the final distance between capitals that
we achieved */
static int dirx[] = { -2, -1, 1, 2, 1, -1 }; /* gyujnb */ static int dirx[] = { -2, -1, 1, 2, 1, -1 }; /* gyujnb */
static int diry[] = { 0, -1, -1, 0, 1, 1 }; static int diry[] = { 0, -1, -1, 0, 1, 1 };
@ -574,7 +572,7 @@ drift(void)
int i, turns; int i, turns;
for (turns = 0; turns < DRIFT_MAX; ++turns) { for (turns = 0; turns < DRIFT_MAX; ++turns) {
if (turns > DRIFT_BEFORE_CHECK && (mind = stable())) if (turns > DRIFT_BEFORE_CHECK && stable())
return 1; return 1;
for (i = 0; i < nc; ++i) for (i = 0; i < nc; ++i)
fl_move(i); fl_move(i);