Csaba Halász wrote:
> Hello all,
> 
> it seems that clearing the property node for the processed messages
> fixes the problem
> of messages being repeated with incorrect pilot id.
> 
> Probably just another unfortunate side-effect of reusing the AI
> property nodes. (sorry folks)
> As such, alternatively we could clear it from c++ code.
> 
> Let me know if it works.

I've still to test it thoroughly, but it looks likely that it is the source of 
the problem.

I think that rather than working around the AI property reuse issue,
we should simply remove all the children of the AI node after it is marked as 
valid=false. Probably something around line 152 of AIManager.cxx.

However, I'm puzzled as to why it doesn't do that already, so I suspect I'm 
missing
something. 

Does anyone have any idea why the subtree under an AI model marked as 
valid=false
isn't deleted?



-Stuart



      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to