[freeciv-ai] (PR#6772) AIs never declare war
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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 <=
|
|