- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/modules/dodgerace/DodgeRaceShip.cc
r10624 r11054 91 91 // Camera 92 92 Camera* camera = this->getCamera(); 93 if (camera != NULL)93 if (camera != nullptr) 94 94 { 95 95 // camera->setPosition(Vector3(-pos.z, -posforeward, 0)); … … 142 142 } 143 143 144 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)144 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) 145 145 { 146 146 … … 152 152 DodgeRace* DodgeRaceShip::getGame() 153 153 { 154 if (game == NULL)154 if (game == nullptr) 155 155 { 156 for ( ObjectList<DodgeRace>::iterator it = ObjectList<DodgeRace>::begin(); it != ObjectList<DodgeRace>::end(); ++it)156 for (DodgeRace* race : ObjectList<DodgeRace>()) 157 157 { 158 game = *it;158 game = race; 159 159 } 160 160 }
Note: See TracChangeset
for help on using the changeset viewer.