Replaced -1 with ~0u to fix warning due to being written to a UInt field. Note, OpenFlight spec says -1, which is clearly an error in the spec, so we've had to guess at ~0u being an appropriate value.

This commit is contained in:
Robert Osfield
2009-01-29 09:27:23 +00:00
parent e5680b2b4f
commit 5ac339d7b2

View File

@@ -708,7 +708,7 @@ FltExportVisitor::writeLightPoint( const osgSim::LightPointNode* lpn )
_records->writeID( id );
_records->writeInt16( 0 ); // Surface material code
_records->writeInt16( 0 ); // Feature ID
_records->writeUInt32( -1 ); // Back color for bidirectional
_records->writeUInt32( ~0u ); // OpenFlight erronously say -1, so will assume ~0u is OK. Back color for bidirectional
_records->writeInt32( EITHER ); // Display mode
_records->writeFloat32( lp0._intensity ); // Intensity
_records->writeFloat32( 0.f ); // Back intensity TBD