Change fairland not to reject small worlds without trying
Instead, print a warning and try. It may well work, and when it
doesn't, it fails cleanly.
(cherry picked from commit de81e4e20a
)
This commit is contained in:
parent
aab337d2e3
commit
065881143e
1 changed files with 2 additions and 3 deletions
|
@ -420,10 +420,9 @@ parse_args(int argc, char *argv[])
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (nc * sc + nc * my_sqrt(sc) * 2 * (di + 1) > WORLD_X * WORLD_Y) {
|
if (nc * sc + nc * my_sqrt(sc) * 2 * (di + 1) > WORLD_X * WORLD_Y) {
|
||||||
puts("fairland: error -- world not big enough to fit continents.");
|
puts("fairland: warning -- world might be too small to fit continents.");
|
||||||
puts("arguments must satisfy:");
|
puts("arguments should satisfy:");
|
||||||
puts("nc*sc*sc + nc*sqrt(sc)*2*(di+1) < WORLD_X * WORLD_Y");
|
puts("nc*sc*sc + nc*sqrt(sc)*2*(di+1) < WORLD_X * WORLD_Y");
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue