Changeset 9554 for code/branches/core6/src
- Timestamp:
- Mar 17, 2013, 7:02:25 PM (12 years ago)
- Location:
- code/branches/core6/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/modules/gametypes/RaceCheckPoint.cc
r9526 r9554 157 157 if (players_.size() > 0) 158 158 { 159 for ( int i = 0; i < players_.size(); i++)159 for (size_t i = 0; i < players_.size(); i++) 160 160 { 161 161 if (this->players_[i]->getClientID() == clientID) … … 172 172 if (players_.size() > 0) 173 173 { 174 for ( int i = 0; i < players_.size(); i++)174 for (size_t i = 0; i < players_.size(); i++) 175 175 { 176 176 if (this->players_[i] == player) -
code/branches/core6/src/modules/gametypes/RaceCheckPoint.h
r9526 r9554 70 70 } 71 71 72 const std::set<int>&getNextCheckpoints()72 std::set<int> getNextCheckpoints() 73 73 { 74 74 return nextCheckpoints_; -
code/branches/core6/src/modules/gametypes/SpaceRaceController.cc
r9526 r9554 86 86 87 87 }//ausgabe*/ 88 88 /* 89 89 for (std::vector<RaceCheckPoint*>::iterator it = checkpoints.begin(); it != checkpoints.end(); ++it) 90 90 { … … 100 100 } 101 101 } 102 }/* 102 } 103 */ 104 /* 103 105 for(std::vector<RaceCheckPoint*>::iterator it=checkpoints_.begin(); it!=checkpoints_.end(); it++) 104 106 { … … 301 303 { 302 304 for (size_t i = 0; i < this->checkpoints_.size(); ++i) 303 if (this->checkpoints_[i]->getCheckpointIndex() == index)304 return this->checkpoints_[i];305 if (this->checkpoints_[i]->getCheckpointIndex() == index) 306 return this->checkpoints_[i]; 305 307 return NULL; 306 308 } … … 340 342 //orxout()<<"temp nach ausgabe: "<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().x<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().y<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().z<<endl; 341 343 //OrxAssert(virtualCheckPointIndex < -1, "TO much virtual cp"); 342 /*orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<", following:"<<indexFollowingCheckPoint<<" : "<<temp.x<<", "<<temp.y<<", "<<temp.z<<"; ";344 orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<", following:"<<indexFollowingCheckPoint<<" : "<<temp.x<<", "<<temp.y<<", "<<temp.z<<"; "; 343 345 temp=previousCheckpoint->getNextCheckpointsAsVector3(); 344 346 orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<": "<<temp.x<<", "<<temp.y<<", "<<temp.z<<"; "; 345 orxout()<<endl; *//*347 orxout()<<endl; 346 348 return newTempRaceCheckPoint; 347 349 }*/ -
code/branches/core6/src/orxonox/worldentities/pawns/Pawn.cc
r9546 r9554 98 98 99 99 this->setSyncMode(ObjectDirection::Bidirectional); // needed to synchronise e.g. aimposition 100 101 /* sewper awesome optimization. This loads all the files required for102 * the big explosion once in the beginning to make sure the game does103 * not start lagging at the first in-action explosion.104 */105 BigExplosion *chunk = new BigExplosion(this->getCreator());106 100 } 107 101
Note: See TracChangeset
for help on using the changeset viewer.