Changeset 8740 for code/branches/output
- Timestamp:
- Jul 10, 2011, 5:46:32 PM (13 years ago)
- Location:
- code/branches/output
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output
- Property svn:ignore
-
old new 1 1 build 2 2 codeblocks 3 vs 3 4 dependencies
-
- Property svn:ignore
-
code/branches/output/src/modules/gametypes/SpaceRace.cc
r8706 r8740 55 55 this->clock_.capture(); 56 56 int s = this->clock_.getSeconds(); 57 int ms = this->clock_.getMilliseconds()-1000*s;57 int ms = static_cast<int>(this->clock_.getMilliseconds()-1000*s); 58 58 const std::string& message = multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds !!\n" 59 59 + "You didn't reach the check point " + multi_cast<std::string>(this->bCheckpointsReached_+1) … … 67 67 this->clock_.capture(); 68 68 int s = this->clock_.getSeconds(); 69 int ms = this->clock_.getMilliseconds()-1000*s;69 int ms = static_cast<int>(this->clock_.getMilliseconds()-1000*s); 70 70 const std::string& message = "You win!! You have reached the last check point after "+ multi_cast<std::string>(s) 71 71 + "." + multi_cast<std::string>(ms) + " seconds."; … … 95 95 this->clock_.capture(); 96 96 int s = this->clock_.getSeconds(); 97 int ms = this->clock_.getMilliseconds()-1000*s;97 int ms = static_cast<int>(this->clock_.getMilliseconds()-1000*s); 98 98 const std::string& message = "Checkpoint " + multi_cast<std::string>(this->getCheckpointsReached()) 99 99 + " reached after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) -
code/branches/output/src/orxonox/infos/GametypeInfo.cc
r8706 r8740 196 196 this->startCountdown_ = countdown; 197 197 // Set the counter to the ceiling of the current countdown. 198 this->counter_ = st d::ceil(countdown);198 this->counter_ = static_cast<unsigned int>(std::ceil(countdown)); 199 199 this->changedCountdownCounter(); 200 200 }
Note: See TracChangeset
for help on using the changeset viewer.