Changeset 8234 for code/trunk/src/orxonox
- Timestamp:
- Apr 12, 2011, 5:10:26 PM (14 years ago)
- Location:
- code/trunk/src/orxonox/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gametypes/LastManStanding.cc
r7655 r8234 222 222 else 223 223 { 224 float damage=pawn->getMaxHealth()*punishDamageRate*0.5 ;//TODO: Factor 0.5 is hard coded. Where is the ratio between MaxHealth actually defined?224 float damage=pawn->getMaxHealth()*punishDamageRate*0.5f;//TODO: Factor 0.5 is hard coded. Where is the ratio between MaxHealth actually defined? 225 225 pawn->removeHealth(damage); 226 226 this->timeToAct_[player]=timeRemaining;//reset timer … … 251 251 if (it->first->getClientID()== CLIENTID_UNKNOWN) 252 252 continue; 253 int output=1+ playerDelayTime_[it->first];253 int output=1+(int)playerDelayTime_[it->first]; 254 254 const std::string& message = "Respawn in " +multi_cast<std::string>(output)+ " seconds." ;//Countdown 255 255 this->gtinfo_->sendFadingMessage(message,it->first->getClientID()); -
code/trunk/src/orxonox/gametypes/LastTeamStanding.cc
r8212 r8234 198 198 if (it->first->getClientID()== CLIENTID_UNKNOWN) 199 199 continue; 200 int output = 1 + playerDelayTime_[it->first];200 int output = 1 + (int)playerDelayTime_[it->first]; 201 201 const std::string& message = "Respawn in " +multi_cast<std::string>(output)+ " seconds." ;//Countdown 202 202 this->gtinfo_->sendFadingMessage(message,it->first->getClientID()); … … 294 294 else 295 295 { 296 float damage = pawn->getMaxHealth()*punishDamageRate*0.5 ;//TODO: Factor 0.5 is hard coded. Where is the ratio between MaxHealth actually defined?296 float damage = pawn->getMaxHealth()*punishDamageRate*0.5f;//TODO: Factor 0.5 is hard coded. Where is the ratio between MaxHealth actually defined? 297 297 pawn->removeHealth(damage); 298 298 this->timeToAct_[player] = timeRemaining;//reset timer
Note: See TracChangeset
for help on using the changeset viewer.