Changeset 10436
- Timestamp:
- May 7, 2015, 10:45:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.cc
r10435 r10436 54 54 void GravityBomb::tick(float dt) 55 55 { 56 SUPER(GravityBomb,tick,dt);57 56 timeToLife_ -= dt; 58 57 if(timeToLife_ < 0) … … 61 60 setVelocity(Vector3::ZERO); 62 61 setAcceleration(Vector3::ZERO); 63 detonate();62 isDetonated_ = true; 64 63 } 65 64 else … … 69 68 } 70 69 if(isDetonated_) detonate(); 70 else SUPER(GravityBomb, tick, dt); 71 71 } 72 72
Note: See TracChangeset
for help on using the changeset viewer.