Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8175


Ignore:
Timestamp:
Apr 3, 2011, 6:05:20 PM (13 years ago)
Author:
jo
Message:

test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lastmanstanding3/src/orxonox/gametypes/LastTeamStanding.cc

    r8170 r8175  
    240240                continue;
    241241
    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?
    245245                std::map<PlayerInfo*, int>::iterator it2 = this->teamnumbers_.find(it->first);
    246246                if (it2 != this->teamnumbers_.end())
     
    249249                }
    250250                //if (party < 0) return; //if search failed
    251              //victory message to all team members
     251                //victory message to all team members, loose message to everyone else
    252252                for (std::map<PlayerInfo*, int>::iterator it3 = this->teamnumbers_.begin(); it3 != this->teamnumbers_.end(); ++it3)
    253253                {
     
    255255                        continue;
    256256                    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());}
    258258                    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());}
    260260                }
    261261                return;
Note: See TracChangeset for help on using the changeset viewer.