Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2006:
[Freeciv-Dev] (PR#15582) airlifting bug
Home

[Freeciv-Dev] (PR#15582) airlifting bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: esa@xxxxxxxxx, jarol1@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#15582) airlifting bug
From: "Egor Vyscrebentsov" <evyscr@xxxxxxxxx>
Date: Sun, 26 Feb 2006 02:20:50 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=15582 >

> [jarol1 AT seznam.cz - Feb 16 10:00:29 2006]:
>
> Hi
> While programing a new warclient I stumbled upon a weird condition in
>    unit.c > unit_can_airlift_to(); which causes a bug
> when server allows airlifting into cities without airports as long as
>    the source city has an airport.
>
> The code is
> if (!punit->tile->city->airlift || !punit->tile->city->airlift) {
> return FALSE;
> }
>
> and should be
> if (!punit->tile->city->airlift || !pcity->airlift) {
> return FALSE;
> }

I suggest to apply fix to S2_1 (and S2_0/... ?) and think about possible
[/possibility] changing behavior in trunk.

-- 
Thanks, evyscr



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