Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10456) map.huts value is absolute?
Home

[Freeciv-Dev] (PR#10456) map.huts value is absolute?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10456) map.huts value is absolute?
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 6 Oct 2004 19:18:09 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10456 >

map.huts appears to be the exact number of huts that appears on the map.

In mapgen.c there is a comparison:

   while (number * map_num_tiles() >= 2000 && ...) {

where "number" is initialized to map.huts and is reduced by 1 for each 
placed hut.  However since map_num_tiles returns a value like 4000 this 
logic is pretty meaningless.

It would be better to change map.huts to be a percent or permille.

jason




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