Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] Re: (PR#6322) client-side CMA and disorder
Home

[Freeciv-Dev] Re: (PR#6322) client-side CMA and disorder

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6322) client-side CMA and disorder
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Tue, 30 Sep 2003 14:37:04 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, 30 Sep 2003, John Wheeler wrote:

> [glip - Tue Sep 30 09:33:35 2003]:
> 
> > On Mon, 29 Sep 2003, Jason Short wrote:
> > 
> > Please put it in RT and send us a message.
> 
> Done!

Thanks to John for the savegame.  The attached patch fixes the problem.  I 
am not sure if a deeper fix is needed, something involving putting 
disorder into the attribute.  Raimar will fix it when he is back, no doubt 
about that.

G.


? core.3797
Index: client/agents/cma_core.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/agents/cma_core.c,v
retrieving revision 1.48
diff -u -r1.48 cma_core.c
--- client/agents/cma_core.c    2003/09/25 13:35:47     1.48
+++ client/agents/cma_core.c    2003/09/30 22:23:42
@@ -726,6 +726,8 @@
   dio_get_sint16(&din, &parameter->happy_factor);
   dio_get_uint8(&din, (int *) &parameter->factor_target);
   dio_get_bool8(&din, &parameter->require_happy);
+  /* This option is only for AI use */
+  parameter->allow_disorder = FALSE;
 
   return TRUE;
 }

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