Index: code/branches/gameimmersion/src/orxonox/worldentities/pawns/SpaceShip.cc
===================================================================
--- code/branches/gameimmersion/src/orxonox/worldentities/pawns/SpaceShip.cc	(revision 8541)
+++ code/branches/gameimmersion/src/orxonox/worldentities/pawns/SpaceShip.cc	(revision 8574)
@@ -78,12 +78,12 @@
         this->setConfigValues();
         this->registerVariables();
-	
-	Camera* c = CameraManager::getInstance().getActiveCamera();
-	this->cameraOriginalPosition = c->getPosition();
-	this->cameraOriginalOrientation = c->getOrientation();
-
-	this->shakeFrequency_ = 15;
-	this->shakeAmplitude_ = 5;
-	this->shakeDt_ = 0;
+        
+        Camera* c = CameraManager::getInstance().getActiveCamera();
+        this->cameraOriginalPosition = c->getPosition();
+        this->cameraOriginalOrientation = c->getOrientation();
+
+        this->shakeFrequency_ = 15;
+        this->shakeAmplitude_ = 5;
+        this->shakeDt_ = 0;
     }
 
@@ -106,5 +106,5 @@
         XMLPortParamVariable(SpaceShip, "boostRate", boostRate_, xmlelement, mode);
         XMLPortParamVariable(SpaceShip, "boostCooldownDuration", boostCooldownDuration_, xmlelement, mode);
-	XMLPortParamVariable(SpaceShip, "shakeFrequency", shakeFrequency_, xmlelement, mode);
+        XMLPortParamVariable(SpaceShip, "shakeFrequency", shakeFrequency_, xmlelement, mode);
     }
 
@@ -118,5 +118,5 @@
         registerVariable(this->boostRate_, VariableDirection::ToClient);
         registerVariable(this->boostCooldownDuration_, VariableDirection::ToClient);
-	registerVariable(this->shakeFrequency_, VariableDirection::ToClient);
+        registerVariable(this->shakeFrequency_, VariableDirection::ToClient);
     }
 
@@ -144,5 +144,5 @@
         if (this->hasLocalController())
         {
-		
+
 /*
             this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() * getMass() * this->auxilaryThrust_);
@@ -176,8 +176,8 @@
                     this->bBoostCooldown_ = true;
                     this->timer_.setTimer(this->boostCooldownDuration_, false, createExecutor(createFunctor(&SpaceShip::boostCooledDown, this)));
-		    
+
                 }
-		
-		shakeCamera(dt);		
+
+                shakeCamera(dt);    
             }
         }
@@ -234,66 +234,66 @@
     */
     void SpaceShip::boost(bool bBoost)
-    {	
+    {
         if(bBoost && !this->bBoostCooldown_)
-	{
-	    //COUT(0) << "Boost startet!\n";
+        {
+            //COUT(0) << "Boost startet!\n";
             this->bBoost_ = true;
-	}
+        }
         if(!bBoost)
-	{
-	    //COUT(0) << "Boost stoppt\n";
-	    this->resetCamera();
+        {
+            //COUT(0) << "Boost stoppt\n";
+            this->resetCamera();
             this->bBoost_ = false;
-	}
+        }
     }
     
     void SpaceShip::boostCooledDown(void)
     {
-	    this->bBoostCooldown_ = false;
+        this->bBoostCooldown_ = false;
     }
     
     void SpaceShip::shakeCamera(float dt)
     {
-	    //make sure the ship is only shaking if it's moving
-	    if (this->getVelocity().squaredLength() > 80)
-	    {
-		    this->shakeDt_ += dt;
-		    
-		    int frequency = this->shakeFrequency_ * (this->getVelocity().squaredLength());
-		    
-		    if (this->shakeDt_ >= 1 /(frequency))
-		    {
-			    this->shakeDt_ -= 1/(frequency);
-		    }
-		    
-		    Degree angle = Degree(sin(this->shakeDt_ * 2* math::pi * frequency) * this->shakeAmplitude_);
-			
-//		    COUT(0) << "Angle: " << angle << std::endl;
-		    Camera* c = this->getCamera();
-
-			//Shaking Camera effect
-		    if (c != 0)
-		    {
-			    c->setOrientation(Vector3::UNIT_X, angle);
-		    }
-	    }
+        //make sure the ship is only shaking if it's moving
+        if (this->getVelocity().squaredLength() > 80)
+        {
+            this->shakeDt_ += dt;
+    
+            int frequency = this->shakeFrequency_ * (this->getVelocity().squaredLength());
+    
+            if (this->shakeDt_ >= 1 /(frequency))
+            {
+                this->shakeDt_ -= 1/(frequency);
+            }
+    
+            Degree angle = Degree(sin(this->shakeDt_ * 2* math::pi * frequency) * this->shakeAmplitude_);
+    
+            //COUT(0) << "Angle: " << angle << std::endl;
+            Camera* c = this->getCamera();
+
+            //Shaking Camera effect
+            if (c != 0)
+            {
+                c->setOrientation(Vector3::UNIT_X, angle);
+            }
+        }
     }
     
     void SpaceShip::resetCamera()
     {
-	    
-//	    COUT(0) << "Resetting camera\n";
-	    Camera *c = this->getCamera();
-	  
-	    if (c == 0)
-	    {
-		    COUT(2) << "Failed to reset camera!";
-		    return;
-	    }
-	    
-	    shakeDt_ = 0;
-	    // 	    
-	    c->setPosition(this->cameraOriginalPosition);
-	    c->setOrientation(this->cameraOriginalOrientation);
+    
+        //COUT(0) << "Resetting camera\n";
+        Camera *c = this->getCamera();
+    
+        if (c == 0)
+        {
+            COUT(2) << "Failed to reset camera!";
+            return;
+        }
+    
+        shakeDt_ = 0;
+        //
+        c->setPosition(this->cameraOriginalPosition);
+        c->setOrientation(this->cameraOriginalOrientation);
     }
 
