Changeset 7200 for code/branches/consolecommands3/src/orxonox
- Timestamp:
- Aug 22, 2010, 12:27:53 AM (14 years ago)
- Location:
- code/branches/consolecommands3/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/orxonox/gametypes/Dynamicmatch.cc
r7163 r7200 155 155 spaceship->getEngine()->setSpeedFactor(5); 156 156 WeakPtr<Engine>* ptr = new WeakPtr<Engine>(spaceship->getEngine()); 157 new Timer(10, false, &createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this))->setDefaultValue(0, ptr), true); 157 ExecutorPtr executor = createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this)); 158 executor->setDefaultValue(0, ptr); 159 new Timer(10, false, executor, true); 158 160 } 159 161 } … … 254 256 spaceship->getEngine()->setSpeedFactor(5); 255 257 WeakPtr<Engine>* ptr = new WeakPtr<Engine>(spaceship->getEngine()); 256 new Timer(10, false, &createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this))->setDefaultValue(0, ptr), true); 258 ExecutorPtr executor = createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this)); 259 executor->setDefaultValue(0, ptr); 260 new Timer(10, false, executor, true); 257 261 } 258 262 -
code/branches/consolecommands3/src/orxonox/weaponsystem/Munition.cc
r5929 r7200 461 461 if (bUseReloadTime && (munition->reloadTime_ > 0 || munition->bStackMunition_)) 462 462 { 463 Executor*executor = createExecutor(createFunctor(&Magazine::loaded, this));463 const ExecutorPtr& executor = createExecutor(createFunctor(&Magazine::loaded, this)); 464 464 executor->setDefaultValues(munition); 465 465
Note: See TracChangeset
for help on using the changeset viewer.