- Timestamp:
- Nov 6, 2015, 10:54:34 PM (8 years ago)
- File:
-
- 1 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)
Note: See TracChangeset
for help on using the changeset viewer.