- Timestamp:
- Nov 20, 2017, 1:35:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.cc
r11554 r11565 52 52 this->speed = 1; 53 53 this->gravity = 1; 54 isDead = true; 54 55 55 56 } … … 68 69 SUPER(FlappyOrxShip, tick, dt); 69 70 //Execute movement 70 if (this->hasLocalController() )71 if (this->hasLocalController()&¬ isDead) 71 72 { 72 73 if(getHealth()<0){ … … 127 128 128 129 void FlappyOrxShip::boost(bool boost){ 130 if(isDead){ 131 isDead = false; 132 getGame()->bIsDead = false; 133 } 129 134 isFlapping=boost; 130 135 }
Note: See TracChangeset
for help on using the changeset viewer.