- Timestamp:
- May 23, 2011, 6:35:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spacerace/src/modules/gametypes/RaceCheckPoint.cc
r8548 r8552 45 45 this->bCheckpointIndex_ = 0; 46 46 this->bIsLast_ = false; 47 this->bTimeLimit_ =0;47 this->bTimeLimit_ = 0; 48 48 49 49 this->setRadarObjectColour(ColourValue::Red); … … 63 63 if (this->getCheckpointIndex() == gametype->getCheckpointsReached()) this->setRadarVisibility(true); 64 64 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 } 65 73 } 66 74
Note: See TracChangeset
for help on using the changeset viewer.