Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] Re: (PR#5431) Unecessary Global Variable in mapgen.c
Home

[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]
To: iquin@xxxxxxxxxx
Cc: Freeciv Development List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: (PR#5431) Unecessary Global Variable in mapgen.c
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Fri, 29 Aug 2003 11:18:56 +0100 (BST)

On Fri, 29 Aug 2003 iquin@xxxxxxxxxx wrote:

> I am fairly certain it was:
> 
> if(game.nplayers % 2) makeisland(210*totalmass/(game.nplayers*100), 3); else 
> i++;
> while(--i) makeisland(140*totalmass/(game.nplayers*100), 2);
> for(i=game.nplayers;i;i--) makeisland(20*totalmass/(game.nplayers*100), 0);
> for(i=game.nplayers;i;i--) makeisland(10*totalmass/(game.nplayers*100), 0);
> 
> No bigweight, no totalweight, no nothing.

But bigweight is not a constant.

And, when game.nplayers == 1, we get one island 2.1 times bigger then the
totalmass we are trying to achieve.

And the obvious formatting should be done too ;)

G.



[Prev in Thread] Current Thread [Next in Thread]