Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2009, 5:42:50 PM (15 years ago)
Author:
landauf
Message:

Cleaned up setPlayer/removePlayer interface between PlayerInfo and ControllableEntity. The whole control is now up to the PlayerInfo, the respective functions in ControllableEntity are now protected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc

    r3033 r3038  
    209209                this->getGametype()->pawnKilled(this, this->lastHitOriginator_);
    210210
    211             if (this->getPlayer())
    212                 this->getPlayer()->stopControl(this);
     211            if (this->getPlayer() && this->getPlayer()->getControllableEntity() == this)
     212                this->getPlayer()->stopControl();
    213213
    214214            if (GameMode::isMaster())
Note: See TracChangeset for help on using the changeset viewer.