]> git.pond.sub.org Git - empserver/commitdiff
fairland: Rename fl_move() to drift_capital()
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 16 Oct 2020 14:26:10 +0000 (16:26 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2021 07:56:35 +0000 (08:56 +0100)
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/util/fairland.c

index 22a953929d24652ed8c5f29e1b5b65d28e8e2fb2..8da3c3e6634233e177775652f6e884352f7bbac2 100644 (file)
@@ -315,7 +315,7 @@ static void allocate_memory(void);
 static void init(void);
 static int drift(void);
 static int stable(int);
 static void init(void);
 static int drift(void);
 static int stable(int);
-static void fl_move(int);
+static void drift_capital(int);
 static int grow_continents(void);
 static int grow_islands(void);
 static void create_elevations(void);
 static int grow_continents(void);
 static int grow_islands(void);
 static void create_elevations(void);
@@ -682,7 +682,7 @@ drift(void)
        if (stable(turns))
            return 1;
        for (i = 0; i < nc; ++i)
        if (stable(turns))
            return 1;
        for (i = 0; i < nc; ++i)
-           fl_move(i);
+           drift_capital(i);
     }
     return 0;
 }
     }
     return 0;
 }
@@ -719,11 +719,13 @@ stable(int turns)
     return stab;
 }
 
     return stab;
 }
 
-/* This routine does the actual drifting
+/*
+ * Drift capital @j.
+ * Move it to an adjacent sector where it is at least as isolated.
 */
 
 static void
 */
 
 static void
-fl_move(int j)
+drift_capital(int j)
 {
     int dir, i, newx, newy;
 
 {
     int dir, i, newx, newy;