fairland: Rename fl_move() to drift_capital()

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2020-10-16 16:26:10 +02:00
parent 82ed4c9d25
commit 6babfefdb0

View file

@ -315,7 +315,7 @@ static void allocate_memory(void);
static void init(void); static void init(void);
static int drift(void); static int drift(void);
static int stable(int); static int stable(int);
static void fl_move(int); static void drift_capital(int);
static int grow_continents(void); static int grow_continents(void);
static int grow_islands(void); static int grow_islands(void);
static void create_elevations(void); static void create_elevations(void);
@ -682,7 +682,7 @@ drift(void)
if (stable(turns)) if (stable(turns))
return 1; return 1;
for (i = 0; i < nc; ++i) 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;