Changeset 5791 for code/branches/core5/src/modules
- Timestamp:
- Sep 26, 2009, 2:05:30 AM (15 years ago)
- Location:
- code/branches/core5/src/modules/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/weapons/MuzzleFlash.cc
r5738 r5791 41 41 RegisterObject(MuzzleFlash); 42 42 this->setScale(0.1f); 43 43 44 44 this->delayTimer_.setTimer(0.1f, false, this, createExecutor(createFunctor(&MuzzleFlash::destroy))); 45 46 45 } 47 48 void MuzzleFlash::destroy()49 {50 delete this;51 }52 53 46 } -
code/branches/core5/src/modules/weapons/MuzzleFlash.h
r5738 r5791 43 43 virtual ~MuzzleFlash() {} 44 44 45 46 47 45 private: 48 void destroy();49 46 Timer<MuzzleFlash> delayTimer_; 50 51 47 }; 52 48 }
Note: See TracChangeset
for help on using the changeset viewer.