Changeset 9941 for code/trunk/src/orxonox/gametypes/LastTeamStanding.cc
- Timestamp:
- Dec 29, 2013, 8:06:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gametypes/LastTeamStanding.cc
r9667 r9941 242 242 party = it2->second; 243 243 } 244 //if (party < 0) return; //if search failed244 if (party < 0) return; //if search failed 245 245 //victory message to all team members, loose message to everyone else 246 for (std::map<PlayerInfo*, int>::iterator it3 = this->teamnumbers_.begin(); it3 != this->teamnumbers_.end(); ++it3) 247 { 248 if (it3->first->getClientID() == NETWORK_PEER_ID_UNKNOWN) 249 continue; 250 if (it3->second == party) 251 {this->gtinfo_->sendAnnounceMessage("You have won the match!", it3->first->getClientID());} 252 else 253 {this->gtinfo_->sendAnnounceMessage("You have lost the match!", it3->first->getClientID());} 254 } 246 this->announceTeamWin(party); 247 255 248 return; 256 249 }
Note: See TracChangeset
for help on using the changeset viewer.