Changeset 9009 for code/branches/presentation2011/src/modules/weapons
- Timestamp:
- Dec 20, 2011, 10:03:15 PM (13 years ago)
- 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 161 161 162 162 this->player_ = this->getShooter()->getPlayer(); 163 this->getShooter()->getPlayer()->startTemporaryControl(this); 163 if(this->player_) 164 this->player_->startTemporaryControl(this); 164 165 165 166 if( GameMode::isMaster() ) -
code/branches/presentation2011/src/modules/weapons/projectiles/Rocket.h
r8855 r9009 122 122 123 123 WeakPtr<PlayerInfo> player_; //!< The player that controls the Rocket. 124 //WeakPtr<Pawn> pawn_; //!< The pawn that controls the Rocket. TODO 124 125 Timer destroyTimer_; //!< Timer to destroy the projectile after its lifetime has run out. 125 126 float lifetime_; //!< The time the projectile exists.
Note: See TracChangeset
for help on using the changeset viewer.