Complete.Org: Mailing Lists: Archives: freeciv-ai: July 2004:
[freeciv-ai] Re: [Freeciv-Dev] Re: (PR#9556) advdiplomacy.c:629
Home

[freeciv-ai] Re: [Freeciv-Dev] Re: (PR#9556) advdiplomacy.c:629

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [freeciv-ai] Re: [Freeciv-Dev] Re: (PR#9556) advdiplomacy.c:629
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Fri, 30 Jul 2004 13:10:15 -0700
Reply-to: rt@xxxxxxxxxxx

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

On Fri, 30 Jul 2004, Per I. Mathisen wrote:
> > Mateusz Stefek wrote:
> > >/* Modify by hatred */
> > >if (adip->love < 0) {
> > >kill_desire += kill_desire / 100 * adip->love;
> > >}
> > >This looks strange. kill_desire is decreased if we don't like this guy.

Index: ai/advdiplomacy.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/advdiplomacy.c,v
retrieving revision 1.25
diff -u -r1.25 advdiplomacy.c
--- ai/advdiplomacy.c   20 Jul 2004 11:48:25 -0000      1.25
+++ ai/advdiplomacy.c   30 Jul 2004 20:08:50 -0000
@@ -625,9 +625,9 @@
     }
   } players_iterate_end;

-  /* Modify by hatred */
+  /* Modify by love */
   if (adip->love < 0) {
-    kill_desire += kill_desire / 100 * adip->love;
+    kill_desire -= kill_desire * adip->love / 100;
   }

   /* Amortize by distance */

Fix committed.

  - Per




[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] Re: [Freeciv-Dev] Re: (PR#9556) advdiplomacy.c:629, Per I. Mathisen <=