Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9730


Ignore:
Timestamp:
Oct 31, 2013, 10:25:40 PM (11 years ago)
Author:
jo
Message:

Making the setLives function more flexible. The game can be immediately ended by setting the lives to zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gametypes/Mission.cc

    r9729 r9730  
    6161            this->end();
    6262        }
     63        else if (this->lives_ == 0)
     64        {
     65            this->missionAccomplished_ = false;
     66            this->end();
     67        }
    6368    }
    6469
     
    6873        {
    6974            this->lives_--;
    70             if (this->lives_ == 0)
    71             {
    72                 this->missionAccomplished_ = false;
    73                 this->end();
    74             }
    7575        }
    7676    }
Note: See TracChangeset for help on using the changeset viewer.