Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] (PR#5658) gen4 bug
Home

[Freeciv-Dev] (PR#5658) gen4 bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#5658) gen4 bug
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 1 Sep 2003 08:13:48 -0700
Reply-to: rt@xxxxxxxxxxxxxx

As reported in PR#5431, there's a bug in gen4 with the call to 
make_island.  The islemass parameter isn't scaled properly.

jason

Index: server/mapgen.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/mapgen.c,v
retrieving revision 1.114
diff -u -r1.114 mapgen.c
--- server/mapgen.c     2003/09/01 15:11:26     1.114
+++ server/mapgen.c     2003/09/01 15:12:46
@@ -1943,7 +1943,7 @@
 
   i = game.nplayers / 2;
   if ((game.nplayers % 2) == 1) {
-    make_island(bigweight * 3, 3, pstate);
+    make_island(bigweight * 3 * pstate->totalmass / totalweight, 3, pstate);
   } else {
     i++;
   }

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#5658) gen4 bug, Jason Short <=