Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 28, 2009, 9:05:56 PM (15 years ago)
Author:
landauf
Message:

Using a WeakPtr instead of a PawnListener-callback in UnderAttack to observe the Destroyer
HUDHealthBar also uses a WeakPtr now (before it displayed the health of already destroyed pawns)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/overlays/hud/HUDHealthBar.cc

    r5800 r5826  
    8585            this->textoverlay_->setCaption(multi_cast<std::string>(static_cast<int>(this->owner_->getHealth())));
    8686        }
     87        else
     88        {
     89            this->setValue(0);
     90            this->textoverlay_->setCaption("0");
     91        }
    8792
    8893        if (this->bUseBarColour_)
Note: See TracChangeset for help on using the changeset viewer.