[Freeciv-Dev] Re: (PR#5431) Unecessary Global Variable in mapgen.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> And, when game.nplayers == 1, we get one island 2.1 times bigger then
I thought there is a check to fallback to gen2.
User shouldn't specify gen4 if they want to play solo.
Anyway, the following might solve it,
as well as allowing "gen6" without adding yet another server var.
for(j=2;game.nplayers%j;j++);
for(i=0;i<game.nplayers;i+=j)
makeisland(70*j*totalmass/(game.nplayers*100),j);
You get gen6 when nplayers is a prime number,
and gen4 when nplayers is even number.
Regards,
I.Q.
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] Re: (PR#5431) Unecessary Global Variable in mapgen.c,
iquin <=
|
|