Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#10722) Not enough grasslands/plains
Home

[Freeciv-Dev] (PR#10722) Not enough grasslands/plains

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mburda@xxxxxxxxx, miky40@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#10722) Not enough grasslands/plains
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Mon, 8 Nov 2004 07:44:40 -0800
Reply-to: rt@xxxxxxxxxxx

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

> [mburda - Sun Nov 07 15:13:07 2004]:
> 
> oups! i forget the patch
> 
> there is the math to define Xxx_pct vars to be tuned for 2.0, this will
> disapear complety in 2.1 when this info will be get from ruleset.
> 
> Marcelo
> 
 
   /* 6 %  if wetness == 50 && temperature == 50 */
-  swamp_pct = factor * (map.wetness * 6 + map.temperature * 6);
-  desert_pct = factor * (map.temperature * 10 + (100 - map.wetness) * 10) ;
+  swamp_pct = factor * MAX(0, 
+                          (map.wetness * 9 - 150 + map.temperature * 6));
+  desert_pct =factor * MAX(0,
+               (map.temperature * 15 - 250 + (100 - map.wetness) * 10)) ;
 }

Actually this code isn't changing anything. It only makes these options
values more bold.

But the forest_pct hack is ok and produces good results.
--
mateusz



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