- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/overlays/hud/HUDEnemyHealthBar.cc
r9667 r11071 30 30 31 31 #include "core/config/ConfigValueIncludes.h" 32 #include "core/CoreIncludes.h" 32 33 #include "worldentities/pawns/Pawn.h" 33 34 … … 41 42 42 43 this->setConfigValues(); 43 this->owner_ = 0;44 this->owner_ = nullptr; 44 45 } 45 46 … … 62 63 void HUDEnemyHealthBar::updateTarget() 63 64 { 64 Pawn* pawn = NULL;65 Pawn* pawn = nullptr; 65 66 if (this->owner_ && this->useEnemyBar_) 66 67 { … … 73 74 // Don't show the HealthBar if the pawn is invisible 74 75 if (pawn && !pawn->isVisible()) 75 pawn = NULL;76 pawn = nullptr; 76 77 } 77 78 // Set the pawn as owner of the HealthBar 78 79 this->setHealthBarOwner(pawn); 79 this->setVisible(pawn != NULL);80 this->setVisible(pawn != nullptr); 80 81 } 81 82
Note: See TracChangeset
for help on using the changeset viewer.