- Timestamp:
- May 16, 2019, 2:53:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BasicProjectile.cc
r12376 r12378 85 85 bool BasicProjectile::processCollision(WorldEntity* otherObject, btManifoldPoint& contactPoint, const btCollisionShape* cs) 86 86 { 87 //orxout() << "OMG A COLLISION" << endl;88 87 if (!this->bDestroy_ && GameMode::isMaster()) 89 88 { … … 93 92 if (getDestroyAfterCollision()) 94 93 { 94 orxout() << "Destroy that stuff" << endl; 95 95 this->bDestroy_ = true; // If something is hit, the object is destroyed and can't hit something else. 96 96 // The projectile is destroyed by its tick()-function (in the following tick). … … 173 173 void BasicProjectile::destroyCheck(void) 174 174 { 175 if(GameMode::isMaster() && this->bDestroy_) 175 if(GameMode::isMaster() && this->bDestroy_) { 176 orxout() << "Set true, smhow" << endl; 176 177 this->destroy(); 178 } 177 179 } 178 180 … … 183 185 void BasicProjectile::destroyObject(void) 184 186 { 185 if(GameMode::isMaster()) 187 if(GameMode::isMaster()) { 188 orxout() << "Deleted myself" << endl; 186 189 this->destroy(); 190 } 187 191 } 188 192 }
Note: See TracChangeset
for help on using the changeset viewer.