Use unsigned instead of unsigned long for fairland's random seed
seed_prng() wants unsigned. Server uses unsigned already.
This commit is contained in:
parent
1bbbd5e27f
commit
ba67bd1f9e
1 changed files with 2 additions and 3 deletions
|
@ -123,7 +123,6 @@ static int ctot; /* total number of continents and islands grown */
|
||||||
static int *isecs; /* array of how large each island is */
|
static int *isecs; /* array of how large each island is */
|
||||||
|
|
||||||
static int nc, sc, di, sp, pm, ni, is, id; /* the 8 args to this program */
|
static int nc, sc, di, sp, pm, ni, is, id; /* the 8 args to this program */
|
||||||
static unsigned long rnd_seed; /* optional seed argument */
|
|
||||||
static int *capx, *capy; /* location of the nc capitals */
|
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 */
|
||||||
|
@ -179,10 +178,10 @@ main(int argc, char *argv[])
|
||||||
int opt;
|
int opt;
|
||||||
char *config_file = NULL;
|
char *config_file = NULL;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
unsigned rnd_seed = 0;
|
||||||
int seed_set = 0;
|
int seed_set = 0;
|
||||||
|
|
||||||
program_name = argv[0];
|
program_name = argv[0];
|
||||||
rnd_seed = 0;
|
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "ae:hioqR:s:v")) != EOF) {
|
while ((opt = getopt(argc, argv, "ae:hioqR:s:v")) != EOF) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
|
@ -233,7 +232,7 @@ main(int argc, char *argv[])
|
||||||
print_vars();
|
print_vars();
|
||||||
|
|
||||||
qprint("\n #*# ...fairland rips open a rift in the datumplane... #*#\n\n");
|
qprint("\n #*# ...fairland rips open a rift in the datumplane... #*#\n\n");
|
||||||
qprint("seed is %lu\n", rnd_seed);
|
qprint("seed is %u\n", rnd_seed);
|
||||||
do {
|
do {
|
||||||
init();
|
init();
|
||||||
if (i)
|
if (i)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue