Changeset 9262 for code/trunk/src/modules/gametypes/SpaceRace.cc
- Timestamp:
- Jun 2, 2012, 11:08:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/gametypes/SpaceRace.cc
r9261 r9262 78 78 SUPER(SpaceRace,tick,dt); 79 79 80 // spawn the players already when the countdown starts, but deactivate their engines 80 81 if (this->isStartCountdownRunning() && !this->cantMove_) 81 82 { … … 87 88 } 88 89 90 // activate the engines again if the countdown ends 89 91 if (!this->isStartCountdownRunning() && this->cantMove_) 90 92 { … … 104 106 int index = checkpoint->getCheckpointIndex(); 105 107 this->checkpointReached_[player] = index; 108 106 109 this->clock_.capture(); 107 110 int s = this->clock_.getSeconds(); 108 111 int ms = this->clock_.getMilliseconds() % 1000; 109 const std::string& message = "Checkpoint " + multi_cast<std::string>(index) 112 113 const std::string& message = "Checkpoint " + multi_cast<std::string>(index + 1) 110 114 + " reached after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds."; 111 115 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);
Note: See TracChangeset
for help on using the changeset viewer.