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.
This commit is contained in:
parent
2ba833efe2
commit
de81e4e20a
1 changed files with 2 additions and 3 deletions
|
@ -420,10 +420,9 @@ parse_args(int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
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("arguments must satisfy:");
|
||||
puts("fairland: warning -- world might be too small to fit continents.");
|
||||
puts("arguments should satisfy:");
|
||||
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