Changeset 6054 in orxonox.OLD for trunk/src/world_entities/weapons/projectile.cc
- Timestamp:
- Dec 11, 2005, 6:23:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/projectile.cc
r5994 r6054 38 38 this->lifeCycle = 0.0; 39 39 this->lifeSpan = 1.0f; /* sec */ 40 this->target = NULL; 40 this->target.addNodeModeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT | 41 PNODE_REPARENT_TO_NULLPARENT); 41 42 42 43 this->removeNode(); … … 103 104 void Projectile::setTarget(PNode* target) 104 105 { 105 106 if (this->target == NULL) 107 this->target = new PNode(); 108 this->target->setParent(target); 106 this->target.setParent(target); 109 107 } 110 108
Note: See TracChangeset
for help on using the changeset viewer.