Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2011, 8:24:00 PM (14 years ago)
Author:
landauf
Message:

hack-fix: overridden implementations of stopLocalHumanControl() were not called in multiplayer, which caused the "fire" command to not reset in Spectator

Location:
code/trunk/src/orxonox/worldentities/pawns
Files:
2 edited

Legend:

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

    r7533 r7889  
    145145    }
    146146
     147    void Pawn::preDestroy()
     148    {
     149        // yay, multiple inheritance!
     150        this->ControllableEntity::preDestroy();
     151        this->PickupCarrier::preDestroy();
     152    }
     153
    147154    void Pawn::setPlayer(PlayerInfo* player)
    148155    {
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.h

    r7655 r7889  
    132132
    133133        protected:
     134            virtual void preDestroy();
     135
    134136            virtual void setPlayer(PlayerInfo* player);
    135137            virtual void removePlayer();
Note: See TracChangeset for help on using the changeset viewer.