[Orxonox-commit 5300] r9963 - code/trunk/src/modules/gametypes

landauf at orxonox.net landauf at orxonox.net
Fri Jan 3 21:29:13 CET 2014


Author: landauf
Date: 2014-01-03 21:29:13 +0100 (Fri, 03 Jan 2014)
New Revision: 9963

Modified:
   code/trunk/src/modules/gametypes/RaceCheckPoint.cc
   code/trunk/src/modules/gametypes/RaceCheckPoint.h
Log:
removed unused variable. RaceCheckPoint is a WorldEntity itself, so it already has a position anyway

Modified: code/trunk/src/modules/gametypes/RaceCheckPoint.cc
===================================================================
--- code/trunk/src/modules/gametypes/RaceCheckPoint.cc	2014-01-03 20:28:38 UTC (rev 9962)
+++ code/trunk/src/modules/gametypes/RaceCheckPoint.cc	2014-01-03 20:29:13 UTC (rev 9963)
@@ -61,7 +61,6 @@
         this->timeLimit_ = 0;
         //this->players_ = vector<PlayerInfo*>();
 
-        myPosition_= this->getPosition(); //eingefuegt
         //orxout(user_status) << "test" << std::endl;
     }
 

Modified: code/trunk/src/modules/gametypes/RaceCheckPoint.h
===================================================================
--- code/trunk/src/modules/gametypes/RaceCheckPoint.h	2014-01-03 20:28:38 UTC (rev 9962)
+++ code/trunk/src/modules/gametypes/RaceCheckPoint.h	2014-01-03 20:29:13 UTC (rev 9963)
@@ -119,7 +119,6 @@
             bool bIsLast_; ///< True if this check point is the last of the level. There can be only one last check point for each level and there must be a last check point in the level.
             float timeLimit_; ///< The time limit (from the start of the level) to reach this check point. If the check point is reached after this time, the game ends and the player looses.
             std::vector<PlayerInfo*> players_; ///< The player that reached the checkpoint
-            Vector3 myPosition_;
             std::set<int>  nextCheckpointsVirtual_;
             std::map<int,int> virtualToRealCheckPoints_; // if virtualChepoint was inserted the original can be reconstructed
     };




More information about the Orxonox-commit mailing list