Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2015, 10:25:42 PM (9 years ago)
Author:
landauf
Message:

replace 'NULL' by 'nullptr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.cc

    r10733 r10765  
    5656            removeHealth(2000);
    5757
    58         if (player != NULL)
     58        if (player != nullptr)
    5959        {
    6060            float newZ = 2/(pow(abs(getPosition().x - player->getPosition().x) * 0.01f, 2) + 1) * (player->getPosition().z - getPosition().z);
     
    7373    Invader* InvaderEnemy::getGame()
    7474    {
    75         if (game == NULL)
     75        if (game == nullptr)
    7676        {
    7777            for (ObjectList<Invader>::iterator it = ObjectList<Invader>::begin(); it != ObjectList<Invader>::end(); ++it)
     
    8484    {
    8585        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)
    8787            getGame()->addPoints(42);
    8888    }
Note: See TracChangeset for help on using the changeset viewer.