[Orxonox-commit 4782] r9451 - code/branches/Racingbot/src/modules/gametypes

purgham at orxonox.net purgham at orxonox.net
Mon Nov 19 13:24:19 CET 2012


Author: purgham
Date: 2012-11-19 13:24:19 +0100 (Mon, 19 Nov 2012)
New Revision: 9451

Modified:
   code/branches/Racingbot/src/modules/gametypes/RaceCheckPoint.cc
   code/branches/Racingbot/src/modules/gametypes/SpaceRaceController.cc
Log:
working Version 19.11.2012 - Bots can allways be included

Modified: code/branches/Racingbot/src/modules/gametypes/RaceCheckPoint.cc
===================================================================
--- code/branches/Racingbot/src/modules/gametypes/RaceCheckPoint.cc	2012-11-19 06:25:00 UTC (rev 9450)
+++ code/branches/Racingbot/src/modules/gametypes/RaceCheckPoint.cc	2012-11-19 12:24:19 UTC (rev 9451)
@@ -61,7 +61,7 @@
         this->timeLimit_ = 0;
         //this->players_ = vector<PlayerInfo*>();
 
-        myPosition_= this->getPosition();
+        myPosition_= this->getPosition(); //eingefuegt
         orxout(user_status) << "test" << std::endl;
 
     }

Modified: code/branches/Racingbot/src/modules/gametypes/SpaceRaceController.cc
===================================================================
--- code/branches/Racingbot/src/modules/gametypes/SpaceRaceController.cc	2012-11-19 06:25:00 UTC (rev 9450)
+++ code/branches/Racingbot/src/modules/gametypes/SpaceRaceController.cc	2012-11-19 12:24:19 UTC (rev 9451)
@@ -54,9 +54,11 @@
         }
 
         OrxAssert(!checkpoints.empty(), "No Checkpoints in Level");
-        //OrxAssert(1==2, "Orxassert test");
         checkpoints_=checkpoints;
         staticRacePoints_ = findStaticCheckpoints(checkpoints);
+        // initialisation of currentRaceCheckpoint_
+        currentRaceCheckpoint_ = NULL;
+        // find first Checkpoint
         for (int i=0; true; i++){
             if(checkpoints_[i]->getCheckpointIndex()==0){
                 nextRaceCheckpoint_=checkpoints_[i];




More information about the Orxonox-commit mailing list