Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2017, 1:35:53 PM (8 years ago)
Author:
pascscha
Message:

death message initiated2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.cc

    r11554 r11565  
    5252        this->speed = 1;
    5353        this->gravity = 1;
     54        isDead = true;
    5455       
    5556    }
     
    6869        SUPER(FlappyOrxShip, tick, dt);
    6970        //Execute movement
    70         if (this->hasLocalController())
     71        if (this->hasLocalController()&&not isDead)
    7172        {
    7273            if(getHealth()<0){
     
    127128
    128129    void FlappyOrxShip::boost(bool boost){
     130        if(isDead){
     131            isDead = false;
     132            getGame()->bIsDead = false;
     133        }
    129134        isFlapping=boost;
    130135    }
Note: See TracChangeset for help on using the changeset viewer.