[Freeciv-Dev] Re: auto
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Dnia 2002.09.09 12:47 Per I. Mathisen napisa³(a):
On Mon, 9 Sep 2002, Rafa³ Bursig wrote:
> > On Mon, Sep 09, 2002 at 12:10:39PM +0200, Rafa? Bursig wrote:
> > > How can I check if my unit was automated ? ( autosettlers,
> > autoexplor,
> > > etc... )
> >
> > There will a yellow sign (X or A) on top of the unit.
>
> IN CODE !!!
LOL. This is the -dev list after all ;)
Check the value of punit->ai.control, if it is TRUE, then the unit is
automated.
I checked :)
The problem is I need this info in "update_menu" function and there
this flag is always "0"(FALSE).
I think , I find why !
In "handle_unit_info(...)" funct. "update_menu" is called before line:
punit->ai.control = packet->ai;
----------------------------------------------------------------------
Sprobuj, nic nie tracisz... >>> http://link.interia.pl/f164a
|
|