Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2009, 9:24:58 PM (15 years ago)
Author:
landauf
Message:

changed type of gametype-HUD and default-HUD to PlayerInfo (instead of Gametype and ControllableEntity respectively). The owner of the Pawn-HUD remains Pawn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/overlays/hud/PongScore.cc

    r2890 r2973  
    135135        SUPER(PongScore, changedOwner);
    136136
    137         this->owner_ = dynamic_cast<Pong*>(this->getOwner());
     137        if (this->getOwner() && this->getOwner()->getGametype())
     138            this->owner_ = dynamic_cast<Pong*>(this->getOwner()->getGametype());
     139        else
     140            this->owner_ = 0;
    138141    }
    139142}
Note: See TracChangeset for help on using the changeset viewer.