From 6727b8d5f77156f0549ae9096c56a13d38b6febe Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 8 Jan 2003 16:30:48 +0000 Subject: [PATCH] Cleaned up the code for the animation flags of the group record. --- src/osgPlugins/flt/flt2osg.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/flt/flt2osg.cpp b/src/osgPlugins/flt/flt2osg.cpp index 032f0238b..e20f60a26 100644 --- a/src/osgPlugins/flt/flt2osg.cpp +++ b/src/osgPlugins/flt/flt2osg.cpp @@ -569,11 +569,10 @@ osg::Group* ConvertFromFLT::visitGroup(osg::Group& osgParent, GroupRecord* rec) { SGroup* currentGroup = (SGroup*) rec->getData(); - bool forwardAnim , swingAnim; // OpenFlight 15.7 has two animation flags, forward and swing - if ( (currentGroup->dwFlags & GroupRecord::FORWARD_ANIM)== GroupRecord::FORWARD_ANIM) forwardAnim = true; else forwardAnim = false; - if ( (currentGroup->dwFlags & GroupRecord::SWING_ANIM) == GroupRecord::SWING_ANIM) swingAnim = true; else swingAnim = false; + bool forwardAnim = (currentGroup->dwFlags & GroupRecord::FORWARD_ANIM); + bool swingAnim = (currentGroup->dwFlags & GroupRecord::SWING_ANIM); if( forwardAnim || swingAnim ) {