[Orxonox-commit 3489] r8175 - code/branches/lastmanstanding3/src/orxonox/gametypes
jo at orxonox.net
jo at orxonox.net
Sun Apr 3 18:05:20 CEST 2011
Author: jo
Date: 2011-04-03 18:05:20 +0200 (Sun, 03 Apr 2011)
New Revision: 8175
Modified:
code/branches/lastmanstanding3/src/orxonox/gametypes/LastTeamStanding.cc
Log:
test.
Modified: code/branches/lastmanstanding3/src/orxonox/gametypes/LastTeamStanding.cc
===================================================================
--- code/branches/lastmanstanding3/src/orxonox/gametypes/LastTeamStanding.cc 2011-04-03 15:56:01 UTC (rev 8174)
+++ code/branches/lastmanstanding3/src/orxonox/gametypes/LastTeamStanding.cc 2011-04-03 16:05:20 UTC (rev 8175)
@@ -239,24 +239,24 @@
if (it->first->getClientID() == CLIENTID_UNKNOWN)
continue;
- if (it->second > 0)
+ if (it->second > 0)//a player that is alive
{
- //which party has survived?
+ //which party has survived?
std::map<PlayerInfo*, int>::iterator it2 = this->teamnumbers_.find(it->first);
if (it2 != this->teamnumbers_.end())
{
party = it2->second;
}
//if (party < 0) return; //if search failed
- //victory message to all team members
+ //victory message to all team members, loose message to everyone else
for (std::map<PlayerInfo*, int>::iterator it3 = this->teamnumbers_.begin(); it3 != this->teamnumbers_.end(); ++it3)
{
if (it3->first->getClientID() == CLIENTID_UNKNOWN)
continue;
if (it3->second == party)
- this->gtinfo_->sendAnnounceMessage("You have won the match!", it3->first->getClientID());
+ {this->gtinfo_->sendAnnounceMessage("You have won the match!", it3->first->getClientID());}
else
- this->gtinfo_->sendAnnounceMessage("You have lost the match!", it3->first->getClientID());
+ {this->gtinfo_->sendAnnounceMessage("You have lost the match!", it3->first->getClientID());}
}
return;
}
More information about the Orxonox-commit
mailing list