Yes, this should already be done in both plib and osg branches.  Regards,

Curt.


On Jan 21, 2008 2:55 PM, Torsten Dreyer wrote:

> > The native_ctrls issue you point out is a surprise to me, but as I look
> in
> > the cvs web browser pages, I see that Erik Hofman's name is attached to
> > these, and the specific commit was adding some new fields to the
> structure.
> > I think it makes sense to remove the comments that disable network byte
> > order.  That appears to have been a mistake that slipped through the
> > cracks.
> I have just recompiled FlightGear with the comments that disable the byte
> order code removed, and the native-ctrls protocol works like magic.
>
> Can you change the source in CVS? I just removed the two comments:
>
> Index: native_ctrls.cxx
> ===================================================================
> RCS file: /var/cvs/FlightGear-0.9/source/src/Network/native_ctrls.cxx,v
> retrieving revision 1.33
> diff -u -p -r1.33 native_ctrls.cxx
> --- native_ctrls.cxx    21 Feb 2006 01:19:47 -0000      1.33
> +++ native_ctrls.cxx    21 Jan 2008 20:53:27 -0000
> @@ -293,7 +293,6 @@ void FGNetCtrls2Props( FGNetCtrls *net,
>     int i;
>
>     SGPropertyNode * node;
> -/***************
>     if ( net_byte_order ) {
>         // convert from network byte order
>         net->version = htonl(net->version);
> @@ -350,7 +349,6 @@ void FGNetCtrls2Props( FGNetCtrls *net,
>         net->speedup = htonl(net->speedup);
>         net->freeze = htonl(net->freeze);
>     }
> -*************/
>     if ( net->version != FG_NET_CTRLS_VERSION ) {
>        SG_LOG( SG_IO, SG_ALERT,
>                 "Version mismatch with raw controls packet format." );
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> 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
>



-- 
Curtis Olson: http://baron.flightgear.org/~curt/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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