- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/gametypes/Gametype.cc
r10624 r10765 92 92 this->gtinfo_->destroy(); 93 93 94 ModifyConsoleCommand(__CC_addBots_name).setObject( NULL);95 ModifyConsoleCommand(__CC_killBots_name).setObject( NULL);94 ModifyConsoleCommand(__CC_addBots_name).setObject(nullptr); 95 ModifyConsoleCommand(__CC_killBots_name).setObject(nullptr); 96 96 } 97 97 } … … 337 337 { 338 338 // Fallback spawn point if there is no active one, choose a random one. 339 SpawnPoint* fallbackSpawnPoint = NULL;339 SpawnPoint* fallbackSpawnPoint = nullptr; 340 340 unsigned int randomspawn = static_cast<unsigned int>(rnd(static_cast<float>(this->spawnpoints_.size()))); 341 341 unsigned int index = 0; … … 346 346 fallbackSpawnPoint = (*it); 347 347 348 if (*it != NULL&& (*it)->isActive())348 if (*it != nullptr && (*it)->isActive()) 349 349 activeSpawnPoints.push_back(*it); 350 350 … … 552 552 } 553 553 554 return NULL;554 return nullptr; 555 555 } 556 556 … … 558 558 { 559 559 // find correct memento state 560 GametypeMementoState* state = NULL;560 GametypeMementoState* state = nullptr; 561 561 for (size_t i = 0; i < states.size(); ++i) 562 562 { … … 570 570 571 571 // find correct scene 572 Scene* scene = NULL;572 Scene* scene = nullptr; 573 573 for (ObjectList<Scene>::iterator it = ObjectList<Scene>::begin(); it != ObjectList<Scene>::end(); ++it) 574 574 {
Note: See TracChangeset
for help on using the changeset viewer.