[Orxonox-commit 2283] r6999 - code/branches/presentation3/src/modules/weapons

dafrick at orxonox.net dafrick at orxonox.net
Thu May 27 23:54:05 CEST 2010


Author: dafrick
Date: 2010-05-27 23:54:05 +0200 (Thu, 27 May 2010)
New Revision: 6999

Modified:
   code/branches/presentation3/src/modules/weapons/RocketController.cc
Log:
Commented some unused variables in RocketController that generated compiler warnings.


Modified: code/branches/presentation3/src/modules/weapons/RocketController.cc
===================================================================
--- code/branches/presentation3/src/modules/weapons/RocketController.cc	2010-05-27 21:50:24 UTC (rev 6998)
+++ code/branches/presentation3/src/modules/weapons/RocketController.cc	2010-05-27 21:54:05 UTC (rev 6999)
@@ -100,8 +100,8 @@
     {
         if (!this->getControllableEntity())
             return;
-        float dx = target.x-this->getControllableEntity()->getPosition().x;
-        float dy = target.y-this->getControllableEntity()->getPosition().y;
+        //float dx = target.x-this->getControllableEntity()->getPosition().x;
+        //float dy = target.y-this->getControllableEntity()->getPosition().y;
         COUT(4)<<"\n diff: ";
         COUT(4)<<target-this->getControllableEntity()->getPosition() << endl;
         //COUT(0)<<"\n 2D view: ";
@@ -112,7 +112,7 @@
         COUT(0)<<this->getControllableEntity()->getPosition().z;
         COUT(0)<<"\n";*/
         Vector2 coord = get2DViewdirection(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target);
-        float distance = (target - this->getControllableEntity()->getPosition()).length();
+        //float distance = (target - this->getControllableEntity()->getPosition()).length();
         //Vector3D diff =target-this->rocket->getPosition();
         COUT(4) << "viewdirection: "<< coord << endl;
         //COUT(0)<<"  ";




More information about the Orxonox-commit mailing list