Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7211) units can't be upgraded
Home

[Freeciv-Dev] Re: (PR#7211) units can't be upgraded

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ggracian@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7211) units can't be upgraded
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 9 Jan 2004 08:55:55 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7211 >

Brett Albertson wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7211 >
> 
> I think I figured it out.
> 
> In server/unittools.c, in handle_leonardo(), you call the upgrade_unit
> function with the FALSE flag.  It should be set to TRUE, since this is
> the "is_free" boolean, and this function only handles the case for
> Leonardo's.
> 
> I made this change, recompiled, and it seems to work now.  I'm attaching
> a one line patch.

Thanks.

This should be fixed now, but who knows what other errors I made with 
this patch.  Looks like I really bungled this one.  Report any more 
errors to RT and I'll take care of them ASAP.

jason




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