1. Jeremy Sandell
  2. ogre-ccs

Commits

Jeremy Sandell  committed 942f520 Draft

comment out currently unused variable for now.

  • Participants
  • Parent commits 565dd49
  • Branches default

Comments (0)

Files changed (1)

File CameraControlSystem/src/CCSFreeCameraMode.cpp

View file
  • Ignore whitespace
 	Ogre::RaySceneQueryResult &result = raySceneQuery->execute();
 	Ogre::RaySceneQueryResult::iterator itr = result.begin();
 
-	bool intersect = false;
+	//bool intersect = false;
 	while (itr != result.end() /*&& !intersect*/) //! @todo are the results ordered ?? if so, uncomment (optimization)
 	{
 		if( itr->distance < minDistance // take the shorter
 			&& mIgnoreList.find(itr->movable) == mIgnoreList.end())
 		{
             minDistance = itr->distance;
-			intersect = true;
+			//intersect = true;
 			if(itr->worldFragment)
 			{
 				hit = itr->worldFragment->singleIntersection;