Changeset 8234
- Timestamp:
- Apr 12, 2011, 5:10:26 PM (14 years ago)
- Location:
- code/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/designtools/SkyboxGenerator.cc
r8232 r8234 189 189 std::pair<int, int> rotate = this->rotations_[this->faceCounter_]; 190 190 if(rotate.first != 0) 191 entity->yaw(Degree( rotate.first));191 entity->yaw(Degree((float)rotate.first)); 192 192 if(rotate.second != 0) 193 entity->pitch(Degree( rotate.second));193 entity->pitch(Degree((float)rotate.second)); 194 194 195 195 COUT(4) << "Created face number " << this->faceCounter_ << "." << endl; -
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.