Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 6:35:35 PM (13 years ago)
Author:
msalomon
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spacerace/src/modules/gametypes/RaceCheckPoint.cc

    r8548 r8552  
    4545        this->bCheckpointIndex_ = 0;
    4646        this->bIsLast_ = false;
    47         this->bTimeLimit_=0;
     47        this->bTimeLimit_ = 0;
    4848       
    4949        this->setRadarObjectColour(ColourValue::Red);
     
    6363        if (this->getCheckpointIndex() == gametype->getCheckpointsReached()) this->setRadarVisibility(true);
    6464        else  this->setRadarVisibility(false);
     65       
     66        if (this->bTimeLimit_ != 0 && gametype->getTimerIsActive()) {
     67          float time = gametype->getTime() - this->bTimeLimit_;
     68          if (time > 0) {
     69            gametype->timeIsUp();
     70            gametype->end();
     71          }
     72        }
    6573    }
    6674
Note: See TracChangeset for help on using the changeset viewer.