Changeset 6863 for code/branches/rocket/src/modules/weapons/projectiles
- Timestamp:
- May 7, 2010, 4:14:18 PM (15 years ago)
- Location:
- code/branches/rocket/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.cc
r6834 r6863 98 98 { 99 99 if (this->isInitialized()) { 100 this->getController()->destroy(); 100 101 COUT(0)<< "simplerocket destroyed\n"; 101 delete this->getController();102 102 } 103 103 } … … 158 158 if (victim) 159 159 victim->hit(this->owner_, contactPoint, dmg); 160 //this->destroy();160 this->destroy(); 161 161 } 162 162 return false; -
code/branches/rocket/src/modules/weapons/projectiles/SimpleRocket.h
r6834 r6863 112 112 { return this->damage_; } 113 113 virtual void fired(unsigned int firemode); 114 114 115 115 116 private: … … 118 119 float damage_; 119 120 bool bDestroy_; 121 120 122 121 123 WeakPtr<PlayerInfo> player_;
Note: See TracChangeset
for help on using the changeset viewer.