Complete.Org: Mailing Lists: Archives: freeciv-ai: December 2002:
[freeciv-ai] Re: (PR#2633) ai_military_attack() bug#1
Home

[freeciv-ai] Re: (PR#2633) ai_military_attack() bug#1

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: (PR#2633) ai_military_attack() bug#1
From: "Per I. Mathisen via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 24 Dec 2002 12:51:07 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, 24 Dec 2002, Gregory Berkolaiko via RT wrote:
> The condition was fine!It was
>       could_unit_move_to_tile(punit, dest_x, dest_y) == 0
> which reads "could NOT move to tile".
>
> (Or maybe it could not move because there is enemy there?).
>
> Anyway, I committed it but then reverted it.This piece of code is very
> confusing, so you really need to explain to me what is happening and what
> should be happening.

Ugh. Yes. Sorry. I got it right the first time (when I wrote this code),
and I definitely should have documented it better.

  - Per




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