Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2008, 3:53:05 AM (16 years ago)
Author:
landauf
Message:
  • If the player dies, the Spectator spawns at the same position the players camera was before.
  • Fixed some related problems and potential bugs
Location:
code/branches/objecthierarchy2/src/orxonox/objects/infos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/infos/PlayerInfo.cc

    r2428 r2438  
    115115    }
    116116
    117     void PlayerInfo::startControl(ControllableEntity* entity)
     117    void PlayerInfo::startControl(ControllableEntity* entity, bool callback)
    118118    {
    119119        if (entity == this->controllableEntity_)
     
    121121
    122122        if (this->controllableEntity_)
    123             this->stopControl(this->controllableEntity_);
     123            this->stopControl(this->controllableEntity_, callback);
    124124
    125125        this->controllableEntity_ = entity;
  • code/branches/objecthierarchy2/src/orxonox/objects/infos/PlayerInfo.h

    r2428 r2438  
    6565                { return this->bReadyToSpawn_; }
    6666
    67             void startControl(ControllableEntity* entity);
     67            void startControl(ControllableEntity* entity, bool callback = true);
    6868            void stopControl(ControllableEntity* entity, bool callback = true);
    6969
Note: See TracChangeset for help on using the changeset viewer.