Changeset 10765 for code/branches/cpp11_v2/src/modules/overlays/hud
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/overlays/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/overlays/hud/HUDEnemyHealthBar.cc
r9667 r10765 62 62 void HUDEnemyHealthBar::updateTarget() 63 63 { 64 Pawn* pawn = NULL;64 Pawn* pawn = nullptr; 65 65 if (this->owner_ && this->useEnemyBar_) 66 66 { … … 73 73 // Don't show the HealthBar if the pawn is invisible 74 74 if (pawn && !pawn->isVisible()) 75 pawn = NULL;75 pawn = nullptr; 76 76 } 77 77 // Set the pawn as owner of the HealthBar 78 78 this->setHealthBarOwner(pawn); 79 this->setVisible(pawn != NULL);79 this->setVisible(pawn != nullptr); 80 80 } 81 81 -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDNavigation.cc
r10624 r10765 134 134 for (std::map<RadarViewable*, ObjectInfo>::iterator it = this->activeObjectList_.begin(); it != this->activeObjectList_.end(); ++it) 135 135 { 136 if (it->second.text_ != NULL)136 if (it->second.text_ != nullptr) 137 137 it->second.text_->setFontName(this->fontName_); 138 138 } … … 183 183 184 184 Camera* cam = CameraManager::getInstance().getActiveCamera(); 185 if (cam == NULL)185 if (cam == nullptr) 186 186 return; 187 187 const Matrix4& camTransform = cam->getOgreCamera()->getProjectionMatrix() * cam->getOgreCamera()->getViewMatrix(); … … 476 476 if(!it->second.selected_ 477 477 || it->first->getRVVelocity().squaredLength() == 0 478 || pawn == NULL478 || pawn == nullptr 479 479 /* TODO : improve getTeam in such a way that it works 480 * || humanPawn == NULL480 * || humanPawn == nullptr 481 481 * || pawn->getTeam() == humanPawn->getTeam()*/) 482 482 { … … 534 534 for (std::map<RadarViewable*, ObjectInfo>::iterator it = this->activeObjectList_.begin(); it != this->activeObjectList_.end(); ++it) 535 535 { 536 if (it->second.health_ != NULL)536 if (it->second.health_ != nullptr) 537 537 it->second.health_->setDimensions(this->healthMarkerSize_ * xScale, this->healthMarkerSize_ * yScale); 538 if (it->second.healthLevel_ != NULL)538 if (it->second.healthLevel_ != nullptr) 539 539 it->second.healthLevel_->setDimensions(this->healthLevelMarkerSize_ * xScale, this->healthLevelMarkerSize_ * yScale); 540 if (it->second.panel_ != NULL)540 if (it->second.panel_ != nullptr) 541 541 it->second.panel_->setDimensions(this->navMarkerSize_ * xScale, this->navMarkerSize_ * yScale); 542 if (it->second.text_ != NULL)542 if (it->second.text_ != nullptr) 543 543 it->second.text_->setCharHeight(this->textSize_ * yScale); 544 if (it->second.target_ != NULL)544 if (it->second.target_ != nullptr) 545 545 it->second.target_->setDimensions(this->aimMarkerSize_ * xScale, this->aimMarkerSize_ * yScale); 546 546 } … … 553 553 554 554 if (this->activeObjectList_.size() >= this->markerLimit_) 555 if (object == NULL)555 if (object == nullptr) 556 556 return; 557 557
Note: See TracChangeset
for help on using the changeset viewer.