- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.cc
r10733 r10765 56 56 removeHealth(2000); 57 57 58 if (player != NULL)58 if (player != nullptr) 59 59 { 60 60 float newZ = 2/(pow(abs(getPosition().x - player->getPosition().x) * 0.01f, 2) + 1) * (player->getPosition().z - getPosition().z); … … 73 73 Invader* InvaderEnemy::getGame() 74 74 { 75 if (game == NULL)75 if (game == nullptr) 76 76 { 77 77 for (ObjectList<Invader>::iterator it = ObjectList<Invader>::begin(); it != ObjectList<Invader>::end(); ++it) … … 84 84 { 85 85 Pawn::damage(damage, healthdamage, shielddamage, originator, cs); 86 if (getGame() && orxonox_cast<InvaderShip*>(originator) != NULL&& getHealth() <= 0)86 if (getGame() && orxonox_cast<InvaderShip*>(originator) != nullptr && getHealth() <= 0) 87 87 getGame()->addPoints(42); 88 88 }
Note: See TracChangeset
for help on using the changeset viewer.