Changeset 10768 for code/branches/cpp11_v2/src/modules/gametypes
- Timestamp:
- Nov 6, 2015, 10:54:34 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/gametypes/SpaceRaceController.cc
r10765 r10768 416 416 for (std::vector<StaticEntity*>::const_iterator it = allObjects.begin(); it != allObjects.end(); ++it) 417 417 { 418 for (int everyShape=0; (*it)->getAttachedCollisionShape(everyShape) != 0; everyShape++)418 for (int everyShape=0; (*it)->getAttachedCollisionShape(everyShape) != nullptr; everyShape++) 419 419 { 420 420 btCollisionShape* currentShape = (*it)->getAttachedCollisionShape(everyShape)->getCollisionShape(); … … 444 444 for (std::vector<StaticEntity*>::iterator it = allObjects.begin(); it != allObjects.end(); ++it) 445 445 { 446 for (int everyShape=0; (*it)->getAttachedCollisionShape(everyShape) != 0; everyShape++)446 for (int everyShape=0; (*it)->getAttachedCollisionShape(everyShape) != nullptr; everyShape++) 447 447 { 448 448 btCollisionShape* currentShape = (*it)->getAttachedCollisionShape(everyShape)->getCollisionShape(); … … 540 540 // { orxout()<<"Problempoint 1.1"<<endl; continue;} 541 541 // //TODO: Probably it points on a wrong object 542 // for (int everyShape=0; (*it)->getAttachedCollisionShape(everyShape)!= 0; everyShape++)542 // for (int everyShape=0; (*it)->getAttachedCollisionShape(everyShape)!=nullptr; everyShape++) 543 543 // { 544 544 // if((*it)->getAttachedCollisionShape(everyShape)->getCollisionShape()==nullptr) … … 572 572 // if((*it)==nullptr) 573 573 // { orxout()<<"Problempoint 1"<<endl; continue;} 574 // for (int everyShape=0; (*it)->getAttachedCollisionShape(everyShape)!= 0; everyShape++)574 // for (int everyShape=0; (*it)->getAttachedCollisionShape(everyShape)!=nullptr; everyShape++) 575 575 // { 576 576 // if((*it)->getAttachedCollisionShape(everyShape)->getCollisionShape()==nullptr) -
code/branches/cpp11_v2/src/modules/gametypes/SpaceRaceManager.cc
r10765 r10768 100 100 return this->checkpoints_[index]; 101 101 else 102 return 0;102 return nullptr; 103 103 } 104 104 … … 116 116 if (this->checkpoints_[i]->getCheckpointIndex() == index) 117 117 return this->checkpoints_[i]; 118 return 0;118 return nullptr; 119 119 } 120 120
Note: See TracChangeset
for help on using the changeset viewer.