Index: orxonox/trunk/src/util/animation/t_animation.h
===================================================================
--- orxonox/trunk/src/util/animation/t_animation.h	(revision 3982)
+++ orxonox/trunk/src/util/animation/t_animation.h	(revision 4597)
@@ -14,5 +14,5 @@
 */
 
-/*! 
+/*!
     \file t_animation.h
 */
@@ -80,5 +80,5 @@
 */
 template<class T>
-tAnimation<T>::tAnimation (T* object, void (T::*funcToAnim)(float)) 
+tAnimation<T>::tAnimation (T* object, void (T::*funcToAnim)(float))
 {
   // create a new List
@@ -100,9 +100,9 @@
 /**
    \brief standard deconstructor
-   
+
    deletes all the Keyframes
 */
 template<class T>
-tAnimation<T>::~tAnimation () 
+tAnimation<T>::~tAnimation ()
 {
   // delete all the KeyFrames
@@ -158,5 +158,5 @@
 
   KeyFrameF* tmpKeyFrame;
-    
+
   // when adding the first frame
   if (this->keyFrameCount == 0)
@@ -170,5 +170,5 @@
       // when adding the second frame
       if (this->currentKeyFrame == this->nextKeyFrame)
-	this->nextKeyFrame = tmpKeyFrame;
+        this->nextKeyFrame = tmpKeyFrame;
       this->keyFrameList->add(tmpKeyFrame);
     }
@@ -191,25 +191,25 @@
       this->localTime += dt;
       if (localTime >= this->currentKeyFrame->duration)
-	{
-	  if (likely(this->keyFramesToPlay != 0))
-	    {
-	      if (unlikely(this->keyFramesToPlay > 0))
-		--this->keyFramesToPlay;
-	      // switching to the next Key-Frame
-	      this->localTime -= this->currentKeyFrame->duration;
-	      
-	      this->currentKeyFrame = this->nextKeyFrame;
-	      // checking, if we should still Play the animation
-	      if (this->currentKeyFrame == this->keyFrameList->lastElement())
-		this->handleInfinity();
-	      this->nextKeyFrame = this->keyFrameList->nextElement(this->currentKeyFrame);
-	      
-	      printf("%p from:%f to:%f\n", this->currentKeyFrame,this->currentKeyFrame->value, this->nextKeyFrame->value);
-	      this->setAnimFunc(this->currentKeyFrame->animFunc);	  
-	    }
-	  else
-	    this->pause();
-	}
-      
+        {
+          if (likely(this->keyFramesToPlay != 0))
+            {
+              if (unlikely(this->keyFramesToPlay > 0))
+                --this->keyFramesToPlay;
+              // switching to the next Key-Frame
+              this->localTime -= this->currentKeyFrame->duration;
+
+              this->currentKeyFrame = this->nextKeyFrame;
+              // checking, if we should still Play the animation
+              if (this->currentKeyFrame == this->keyFrameList->lastElement())
+                this->handleInfinity();
+              this->nextKeyFrame = this->keyFrameList->nextElement(this->currentKeyFrame);
+
+              printf("%p from:%f to:%f\n", this->currentKeyFrame,this->currentKeyFrame->value, this->nextKeyFrame->value);
+              this->setAnimFunc(this->currentKeyFrame->animFunc);
+            }
+          else
+            this->pause();
+        }
+
       (this->object->*(funcToAnim))((this->*animFunc)(this->localTime));
     }
@@ -243,7 +243,7 @@
     case ANIM_NEG_EXP:
       {
-	this->animFunc = &tAnimation<T>::negExp;
-	expFactor =  - 1.0 / this->currentKeyFrame->duration * logf(DELTA_X);
-	break;
+        this->animFunc = &tAnimation<T>::negExp;
+        expFactor =  - 1.0 / this->currentKeyFrame->duration * logf(DELTA_X);
+        break;
       }
     case ANIM_QUADRATIC:
@@ -273,5 +273,5 @@
 */
 template<class T>
-float tAnimation<T>::linear(float timePassed) const 
+float tAnimation<T>::linear(float timePassed) const
 {
   return this->currentKeyFrame->value + (this->nextKeyFrame->value - this->currentKeyFrame->value)
@@ -287,7 +287,7 @@
 {
   if (timePassed * 2.0 < this->currentKeyFrame->duration)
-    return this->currentKeyFrame->value + (this->nextKeyFrame->value - this->currentKeyFrame->value) 
+    return this->currentKeyFrame->value + (this->nextKeyFrame->value - this->currentKeyFrame->value)
       * sin( M_PI * timePassed / this->currentKeyFrame->duration)/2;
-  else 
+  else
     return this->nextKeyFrame->value - (this->nextKeyFrame->value - this->currentKeyFrame->value)
       * sin( M_PI * (1.0 - timePassed / this->currentKeyFrame->duration))/2;
@@ -350,5 +350,5 @@
 float tAnimation<T>::random(float timePassed) const
 {
-  return this->currentKeyFrame->value + 
+  return this->currentKeyFrame->value +
     (this->nextKeyFrame->value - this->currentKeyFrame->value) *
     (float)rand()/(float)RAND_MAX;
