Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Re: Hills and mapgen 1
Home

[Freeciv-Dev] Re: Hills and mapgen 1

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Hills and mapgen 1
From: Corin Anderson <corin@xxxxxxxxxx>
Date: Thu, 27 Jan 2000 20:37:46 -0800 (PST)

Here's the patch I threatened you all with.  This patch should make the
distribution of hills and forests as such be more balanced between the
northern and southern hemispheres.

Please let me know if you feel I've violated someone's earlier good
intentions.

Corey


--- freeciv/server/mapgen.c.orig        Thu Jan 27 20:08:37 2000
+++ freeciv/server/mapgen.c     Thu Jan 27 20:09:04 2000
@@ -954,7 +954,7 @@
   
   for (y=0;y<map.ysize;y++) {
     for (x=0;x<map.xsize;x++) {
-      height_map[y*map.xsize+x]=myrand(40)+((500-abs(map.ysize/2)-y)/10);
+      height_map[y*map.xsize+x]=myrand(40)+((500-abs(map.ysize/2-y))/10);
     }
   }
   for (i=0;i<1500;i++) {



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