[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]
<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
|
|