Complete.Org: Mailing Lists: Archives: freeciv-ai: September 2004:
[freeciv-ai] Reset recalc count on /debug city
Home

[freeciv-ai] Reset recalc count on /debug city

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Reset recalc count on /debug city
From: Per Inge Mathisen <per@xxxxxxxxxxx>
Date: Wed, 15 Sep 2004 09:22:34 +0000 (GMT)

Index: server/stdinhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/stdinhand.c,v
retrieving revision 1.348
diff -u -r1.348 stdinhand.c
--- server/stdinhand.c  14 Sep 2004 19:26:23 -0000      1.348
+++ server/stdinhand.c  15 Sep 2004 09:18:06 -0000
@@ -2171,6 +2171,7 @@
     } else {
       pcity->debug = TRUE;
       CITY_LOG(LOG_NORMAL, pcity, "debugged");
+      pcity->ai.next_recalc = 0; /* force recalc of city next turn */
     }
   } else if (strcmp(arg[0], "units") == 0) {
     int x, y;

So that we can see what the AI is thinking without waiting several turns
to get the output. Committed.

  - Per



[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] Reset recalc count on /debug city, Per Inge Mathisen <=