Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7256) cvs build crashes
Home

[Freeciv-Dev] Re: (PR#7256) cvs build crashes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: viceic@xxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7256) cvs build crashes
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Sun, 25 Jan 2004 06:29:16 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Sat, Jan 17, 2004 at 02:40:53AM -0800, viceic@xxxxxxxxxx wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7256 >
> 
> Hi,
> 
> Here is the savegame which make the game crash with message:
> 
> civserver: cityturn.c:237: auto_arrange_workers:  l'assertion « 
> cmr.found_a_valid » a échoué.
> Abandon

Attaches is the patch which I applied to fix this.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Life is too short for reboots."

Index: server/cityturn.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/cityturn.c,v
retrieving revision 1.238
diff -u -u -r1.238 cityturn.c
--- server/cityturn.c   2004/01/21 09:28:53     1.238
+++ server/cityturn.c   2004/01/25 14:22:03
@@ -201,12 +201,12 @@
        */
       cmp.allow_disorder = TRUE;
       cmp.allow_specialists = FALSE;
-      cmp.minimal_surplus[FOOD] = -20;
-      cmp.minimal_surplus[SHIELD] = -20;
-      cmp.minimal_surplus[TRADE] = -20;
-      cmp.minimal_surplus[GOLD] = -20;
-      cmp.minimal_surplus[LUXURY] = -20;
-      cmp.minimal_surplus[SCIENCE] = -20;
+      cmp.minimal_surplus[FOOD] = -FC_INFINITY;
+      cmp.minimal_surplus[SHIELD] = -FC_INFINITY;
+      cmp.minimal_surplus[TRADE] = -FC_INFINITY;
+      cmp.minimal_surplus[GOLD] = -FC_INFINITY;
+      cmp.minimal_surplus[LUXURY] = -FC_INFINITY;
+      cmp.minimal_surplus[SCIENCE] = -FC_INFINITY;
 
       cm_query_result(pcity, &cmp, &cmr);
     } else {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#7256) cvs build crashes, Raimar Falke <=