]> git.pond.sub.org Git - empserver/commitdiff
fairland: Global variable @mind is write-only, drop
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Jul 2020 07:22:35 +0000 (09:22 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:36 +0000 (10:41 +0100)
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/util/fairland.c

index 0e3b10db40c08599582ac0b05eafcc99ce8860f7..35a580d7b15262c06d00e6a8ce6b311f29e3cbb2 100644 (file)
@@ -185,8 +185,6 @@ static int *capx, *capy;    /* location of the nc capitals */
 static int *mc, mcc;           /* array and counter used for stability
                                   check when perturbing */
 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 diry[] = { 0, -1, -1, 0, 1, 1 };
 
@@ -574,7 +572,7 @@ drift(void)
     int i, turns;
 
     for (turns = 0; turns < DRIFT_MAX; ++turns) {
-       if (turns > DRIFT_BEFORE_CHECK && (mind = stable()))
+       if (turns > DRIFT_BEFORE_CHECK && stable())
            return 1;
        for (i = 0; i < nc; ++i)
            fl_move(i);