Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: (PR#2280) Transfer or city with allied units inside --
Home

[Freeciv-Dev] Re: (PR#2280) Transfer or city with allied units inside --

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: nightmare@xxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2280) Transfer or city with allied units inside --> core dump
From: "Anthony J. Stuckey via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 12 Nov 2002 19:01:27 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Sat, Nov 09, 2002 at 09:11:14AM -0800, Davide Pagnin via RT wrote:
> In the event that we are transferring units inside a city to another
> owner, we apply the old code.
> In the event that the units inside the city are owned by a third player,
> not allied with the new owner of the city, its units are teleported to
> the nearest city.
> In the event (Which IMHO can't happen, but I don't know...) that
> find_closest_owned_cities return NULL, then the unit is destroyed.
> (This same choice and code is used in the resolve_unit_stack function
> which I have used as model)

        This is a fine algorithm.



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