[Freeciv-Dev] (PR#2636) fix for grave bug in aiair.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients:; |
Subject: |
[Freeciv-Dev] (PR#2636) fix for grave bug in aiair.c |
From: |
"Per I. Mathisen via RT" <rt@xxxxxxxxxxxxxx> |
Date: |
Mon, 23 Dec 2002 12:03:20 -0800 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
@@ -338,7 +340,9 @@
* TODO: separate attacking into a function, check for the best
* tile to attack from */
set_unit_activity(punit, ACTIVITY_GOTO);
- (void) do_unit_goto(punit, GOTO_MOVE_ANY, FALSE);
+ if (!ai_unit_goto(punit, GOTO_MOVE_ANY, FALSE)) {
+ return; /* died */
+ }
/* goto would be aborted: "Aborting GOTO for AI attack procedures"
* now actually need to attack */
Definitely S1_14 material, too.
- Per
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#2636) fix for grave bug in aiair.c,
Per I. Mathisen via RT <=
|
|