Changeset 8175 for code/branches/lastmanstanding3/src/orxonox
- Timestamp:
- Apr 3, 2011, 6:05:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lastmanstanding3/src/orxonox/gametypes/LastTeamStanding.cc
r8170 r8175 240 240 continue; 241 241 242 if (it->second > 0) 243 { 244 //which party has survived?242 if (it->second > 0)//a player that is alive 243 { 244 //which party has survived? 245 245 std::map<PlayerInfo*, int>::iterator it2 = this->teamnumbers_.find(it->first); 246 246 if (it2 != this->teamnumbers_.end()) … … 249 249 } 250 250 //if (party < 0) return; //if search failed 251 //victory message to all team members251 //victory message to all team members, loose message to everyone else 252 252 for (std::map<PlayerInfo*, int>::iterator it3 = this->teamnumbers_.begin(); it3 != this->teamnumbers_.end(); ++it3) 253 253 { … … 255 255 continue; 256 256 if (it3->second == party) 257 this->gtinfo_->sendAnnounceMessage("You have won the match!", it3->first->getClientID());257 {this->gtinfo_->sendAnnounceMessage("You have won the match!", it3->first->getClientID());} 258 258 else 259 this->gtinfo_->sendAnnounceMessage("You have lost the match!", it3->first->getClientID());259 {this->gtinfo_->sendAnnounceMessage("You have lost the match!", it3->first->getClientID());} 260 260 } 261 261 return;
Note: See TracChangeset
for help on using the changeset viewer.