Changeset 2908 for code/branches/questsystem5/src/orxonox/objects/weaponSystem/projectiles/Projectile.cc
- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/objects/weaponSystem/projectiles/Projectile.cc
r2907 r2908 41 41 #include "objects/worldentities/ParticleSpawner.h" 42 42 #include "objects/collisionshapes/SphereCollisionShape.h" 43 #include "core/ GameMode.h"43 #include "core/Core.h" 44 44 45 45 namespace orxonox … … 55 55 // Get notification about collisions 56 56 57 if ( GameMode::isMaster())57 if (Core::isMaster()) 58 58 { 59 59 this->enableCollisionCallback(); … … 93 93 void Projectile::destroyObject() 94 94 { 95 if ( GameMode::isMaster())95 if (Core::isMaster()) 96 96 delete this; 97 97 } … … 99 99 bool Projectile::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint) 100 100 { 101 if (!this->bDestroy_ && GameMode::isMaster())101 if (!this->bDestroy_ && Core::isMaster()) 102 102 { 103 103 this->bDestroy_ = true;
Note: See TracChangeset
for help on using the changeset viewer.