Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: (PR#2636) fix for grave bug in aiair.c
Home

[Freeciv-Dev] Re: (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: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2636) fix for grave bug in aiair.c
From: "Gregory Berkolaiko via RT" <rt@xxxxxxxxxxxxxx>
Date: Mon, 23 Dec 2002 12:21:05 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Mon, 23 Dec 2002, Per I. Mathisen via RT wrote:

> @@ -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 */

Mhhh.  How come a unit can die on goto?

> Definitely S1_14 material, too.

Not really ;)

aiair.c is not in 1_14

G.




[Prev in Thread] Current Thread [Next in Thread]