Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#4196) Enemies in allied transport assert.
Home

[Freeciv-Dev] Re: (PR#4196) Enemies in allied transport assert.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4196) Enemies in allied transport assert.
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Fri, 9 May 2003 10:34:01 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, 9 May 2003, Per I. Mathisen wrote:
> > > > Also it would be helpful if you can tell me what happens when something
> > > > (not Fighter) attacks a tile with a Bomber and fortified tank.
> > >
> > > It is not allowed. The check to can_unit_attack_unit_on_tile() fails.
> >
> > The check is only on the chief defender. But what if the tank is
> > selected as the defender?
>
> The bomber is always the best defender, since it cannot be attacked and
> hence cannot be defeated.

Uh-huh. This is what should have been done, I guess. But from reading the
source again, I don't think this is is what actually happens. It seems we
would attack the tank, and if we won, kill the Bomber too...

This is a bug, since whether or not we can attack the tile becomes
arbitrary, dependent on how strong the bomber is relative to the attacker.

  - Per




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