Complete.Org: Mailing Lists: Archives: freeciv-ai: November 2003:
[freeciv-ai] (PR#6772) AIs never declare war
Home

[freeciv-ai] (PR#6772) AIs never declare war

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rt-guest@xxxxxxxxxxx
Subject: [freeciv-ai] (PR#6772) AIs never declare war
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 23 Nov 2003 10:57:01 -0800
Reply-to: rt@xxxxxxxxxxx

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

AI does not count down as it should. This patch fixes this. Also adds a
comment.
Index: ai/advdiplomacy.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/advdiplomacy.c,v
retrieving revision 1.10
diff -u -r1.10 advdiplomacy.c
--- ai/advdiplomacy.c   2003/11/23 15:49:26     1.10
+++ ai/advdiplomacy.c   2003/11/23 18:55:28
@@ -695,6 +699,10 @@
     if (ai->diplomacy.strategy == WIN_SPACE) {
        ai->diplomacy.strategy = WIN_OPEN;
     }
+  }
+
+  if (ai->diplomacy.countdown > 0) {
+    ai->diplomacy.countdown--;
   }
 
   /* Ensure that we don't prematurely end an ongoing war */
Index: ai/ailog.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/ailog.c,v
retrieving revision 1.10
diff -u -r1.10 ailog.c
--- ai/ailog.c  2003/09/28 17:52:54     1.10
+++ ai/ailog.c  2003/11/23 18:55:28
@@ -32,7 +32,8 @@
 
 /**************************************************************************
   Log player messages, they will appear like this
-    2: 
+    2: perrin [ti12 co6 lo5 e]  Increased love for a (now 9)
+  where ti is timer, co countdown and lo love for target, who is e.
 **************************************************************************/
 void PLAYER_LOG(int level, struct player *pplayer, struct ai_data *ai, 
                 const char *msg, ...)

[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] (PR#6772) AIs never declare war, Per I. Mathisen <=