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.

-- 
Csaba/Jester
Index: data/Nasal/multiplayer.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Nasal/multiplayer.nas,v
retrieving revision 1.4
diff -u -r1.4 multiplayer.nas
--- data/Nasal/multiplayer.nas  8 Dec 2007 19:06:25 -0000       1.4
+++ data/Nasal/multiplayer.nas  3 Jan 2008 00:41:08 -0000
@@ -18,7 +18,9 @@
 
        foreach (i; mp)
        {
-               var lmsg           = getprop(i.getPath() ~ 
"/sim/multiplay/chat");
+               var lmsgnode = props.globals.getNode(i.getPath() ~ 
"/sim/multiplay/chat");
+               var lmsg           = lmsgnode.getValue();
+               lmsgnode.setValue("");
                var lcallsign      = getprop(i.getPath() ~ "/callsign");
                var lvalid         = getprop(i.getPath() ~ "/valid");
 
-------------------------------------------------------------------------
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