Complete.Org: Mailing Lists: Archives: freeciv-ai: February 2003:
[freeciv-ai] Fix code typo in aiair.c
Home

[freeciv-ai] Fix code typo in aiair.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Fix code typo in aiair.c
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 2 Feb 2003 14:55:54 +0000 (GMT)

This is very obviously horribly wrong... committed right away. Might be
cause of infinite air manage loop.

  - Per

Index: ai/aiair.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aiair.c,v
retrieving revision 1.9
diff -u -r1.9 aiair.c
--- ai/aiair.c  24 Jan 2003 00:32:18 -0000      1.9
+++ ai/aiair.c  2 Feb 2003 14:54:20 -0000
@@ -342,7 +342,7 @@
      * TODO: separate attacking into a function, check for the best
      * tile to attack from */
     set_unit_activity(punit, ACTIVITY_GOTO);
-    if (!ai_unit_goto(punit, GOTO_MOVE_ANY, FALSE)) {
+    if (!ai_unit_gothere(punit)) {
       return; /* died */
     }




[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] Fix code typo in aiair.c, Per I. Mathisen <=