Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12833) consider_settler_action simplification
Home

[Freeciv-Dev] Re: (PR#12833) consider_settler_action simplification

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bdunstan149@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12833) consider_settler_action simplification
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Apr 2005 19:11:40 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12833 >

STOP.

Before we take this discussion any further, can you tell me why the
"extra" value is -1 in most cases, and why this is added on to the
pre-ammortized value?  It looks to me like an extra -64 is added on to
almost every improvement consideration.  This (minimalist) patch should
fix it.

Am I missing something?

-jason


Index: server/settlers.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/settlers.c,v
retrieving revision 1.209.2.5
diff -u -r1.209.2.5 settlers.c
--- server/settlers.c   13 Feb 2005 19:17:23 -0000      1.209.2.5
+++ server/settlers.c   19 Apr 2005 02:11:16 -0000
@@ -772,6 +772,7 @@
     consider = TRUE;
   } else {
     consider = (new_tile_value > old_tile_value);
+    extra = 0;
   }
 
   if (consider) {

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