Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 20, 2011, 10:03:15 PM (13 years ago)
Author:
jo
Message:

Quick fix for the rocket. Taking care of this issue later.

Location:
code/branches/presentation2011/src/modules/weapons/projectiles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2011/src/modules/weapons/projectiles/Rocket.cc

    r8980 r9009  
    161161       
    162162        this->player_ = this->getShooter()->getPlayer();
    163         this->getShooter()->getPlayer()->startTemporaryControl(this);
     163        if(this->player_)
     164            this->player_->startTemporaryControl(this);
    164165
    165166        if( GameMode::isMaster() )
  • code/branches/presentation2011/src/modules/weapons/projectiles/Rocket.h

    r8855 r9009  
    122122
    123123            WeakPtr<PlayerInfo> player_; //!< The player that controls the Rocket.
     124            //WeakPtr<Pawn> pawn_; //!< The pawn that controls the Rocket. TODO
    124125            Timer destroyTimer_; //!< Timer to destroy the projectile after its lifetime has run out.
    125126            float lifetime_; //!< The time the projectile exists.
Note: See TracChangeset for help on using the changeset viewer.