Changeset 10765 for code/branches/cpp11_v2/src/orxonox/infos
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/infos/PlayerInfo.cc
r10624 r10765 181 181 182 182 RadarViewable* radarviewable = orxonox_cast<RadarViewable*>(entity); 183 if (radarviewable != NULL)183 if (radarviewable != nullptr) 184 184 radarviewable->setRadarName(this->getName()); 185 185 } … … 235 235 236 236 Controller* tmp =this->controllableEntity_->getController(); 237 if (tmp == NULL)238 { 239 orxout(verbose) << "PlayerInfo: pauseControl, Controller is NULL" << endl;237 if (tmp == nullptr) 238 { 239 orxout(verbose) << "PlayerInfo: pauseControl, Controller is nullptr " << endl; 240 240 return; 241 241 } 242 242 tmp->setActive(false); 243 //this->controllableEntity_->getController()->setControllableEntity( NULL);243 //this->controllableEntity_->getController()->setControllableEntity(nullptr); 244 244 this->controllableEntity_->setController(0); 245 245 } … … 249 249 ControllableEntity* entity = this->controllableEntity_; 250 250 251 assert(this->controllableEntity_ != NULL);251 assert(this->controllableEntity_ != nullptr); 252 252 if( !entity || this->previousControllableEntity_.size() == 0 ) 253 253 return; … … 260 260 do { 261 261 this->controllableEntity_ = this->previousControllableEntity_.back(); 262 } while(this->controllableEntity_ == NULL&& this->previousControllableEntity_.size() > 0);262 } while(this->controllableEntity_ == nullptr && this->previousControllableEntity_.size() > 0); 263 263 this->controllableEntityID_ = this->controllableEntity_->getObjectID(); 264 264 this->previousControllableEntity_.pop_back(); 265 265 266 if ( this->controllableEntity_ != NULL && this->controller_ != NULL)266 if ( this->controllableEntity_ != nullptr && this->controller_ != nullptr) 267 267 this->controller_->setControllableEntity(this->controllableEntity_); 268 268 269 269 // HACK-ish 270 if(this->controllableEntity_ != NULL&& this->isHumanPlayer())270 if(this->controllableEntity_ != nullptr && this->isHumanPlayer()) 271 271 this->controllableEntity_->createHud(); 272 272
Note: See TracChangeset
for help on using the changeset viewer.