[Freeciv-Dev] Re: (PR#11357) Re: (PR#11358) server crash in aitools.c
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=11357 >
Mike Kaufman wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=11357 >
>
> On Sun, Dec 05, 2004 at 04:45:53PM -0800, Marko Lindqvist wrote:
>
>> We've got autosettler on city building mission.
>
> for reference, this player had just been aitoggled from ai to human.
And unit roles are not reset when player is aitoggled. So settler has
kept its previous AIUNIT_BUILD_CITY role. Obviously unit roles should be
reseted. Is there any special cases where they should be preserved?
Probably also auto_settler_findwork() should be made a bit more
secure. It currently believes that if settler has AIUNIT_BUILD_CITY
role, it has to be AI player unit. Extra check here can't hurt.
- ML
|
|