Changeset 9554 for code/branches/core6/src/modules
- Timestamp:
- Mar 17, 2013, 7:02:25 PM (12 years ago)
- Location:
- code/branches/core6/src/modules/gametypes
- Files:
-
- 3 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 }*/
Note: See TracChangeset
for help on using the changeset viewer.