Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#9627) PATCH: correct some parameters in map generator
Home

[Freeciv-Dev] (PR#9627) PATCH: correct some parameters in map generator

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mburda@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#9627) PATCH: correct some parameters in map generator and clean-up
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Tue, 7 Sep 2004 01:49:17 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [mstefek - Tue Sep 07 08:13:28 2004]:
> 
> > [mburda - Tue Sep 07 07:44:43 2004]:
> > 
> > > [jdorje - Mar. Aoû. 10 01:39:25 2004]:
> > 
> > UPATED
> > Finally this is time to go for this patch
> > comments welcomed
> > i think someting is wrong with rivers but i no see what
> > 
> > TO FIX rivers problem

From make_rivers():
  /* Formula to make the river density similar om different sized maps.
Avoids
     too few rivers on large maps and too many rivers on small maps. */
  int desirable_riverlength =
    map.riverlength *
    /* This 10 is a conversion factor to take into account the fact that
this
     * river code was written when map.riverlength had a maximum value of 
     * 1000 rather than the current 100 */
    10 *
    /* The size of the map (poles don't count). */
    map_num_tiles() 
      * (map.alltemperate ? 1.0 : 2.0 * ICE_BASE_LEVEL/MAX_TEMP) *
    /* Rivers need to be on land only. */
    map.landpercent /
    /* Adjustment value. Tested by me. Gives no rivers with 'set
       rivers 0', gives a reasonable amount of rivers with default
       settings and as many rivers as possible with 'set rivers 100'. */
    0xD000; /* (= 53248 in decimal) */

If map.alltemperature = 0 then desirable_river_length = 7
Something is wrong in this formula
when alltemperature = 1 rivers look normal.

> > Marcelo
> > 
> It doesn't apply
Sorry, I didn't run cvs update
--
mateusz



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