- Timestamp:
- May 27, 2009, 2:45:54 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/particles (added) merged: 2830,3054,3065
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/BigExplosion.cc
- Property svn:eol-style set to native
r3086 r3087 36 36 #include <sstream> 37 37 38 #include "core/ Core.h"38 #include "core/GameMode.h" 39 39 #include "core/CoreIncludes.h" 40 40 #include "core/Executor.h" … … 53 53 RegisterObject(BigExplosion); 54 54 55 if ( Core::showsGraphics() && ( !this->getScene() || !this->getScene()->getSceneManager() ) )55 if ( GameMode::showsGraphics() && ( !this->getScene() || !this->getScene()->getSceneManager() ) ) 56 56 ThrowException(AbortLoading, "Can't create BigExplosion, no scene or no scene manager given."); 57 57 /* … … 70 70 */ 71 71 72 if ( Core::showsGraphics() )72 if ( GameMode::showsGraphics() ) 73 73 { 74 74 try … … 87 87 } 88 88 89 if ( Core::isMaster())89 if (GameMode::isMaster()) 90 90 { 91 91 Vector3 velocity(rnd(-1, 1), rnd(-1, 1), rnd(-1, 1)); … … 94 94 this->setVelocity(velocity); 95 95 96 this->destroyTimer_.setTimer(rnd( 4, 7), false, this, createExecutor(createFunctor(&BigExplosion::stop)));96 this->destroyTimer_.setTimer(rnd(2, 4), false, this, createExecutor(createFunctor(&BigExplosion::stop))); 97 97 } 98 98 this->registerVariables(); … … 366 366 this->debrisSmoke4_->setEnabled(false); 367 367 368 if ( Core::isMaster())368 if (GameMode::isMaster()) 369 369 { 370 370 this->bStop_ = true; … … 395 395 396 396 397 /* if ( Core::isMaster() && rnd() < dt*(this->cps_))397 /* if (GameMode::isMaster() && rnd() < dt*(this->cps_)) 398 398 { 399 399
Note: See TracChangeset
for help on using the changeset viewer.