Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 29, 2013, 8:06:44 PM (10 years ago)
Author:
jo
Message:

Adding most of the changes that were proposed in the release2012 branch.

File:
1 edited

Legend:

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

    r9667 r9941  
    242242                    party = it2->second;
    243243                }
    244                 //if (party < 0) return; //if search failed
     244                if (party < 0) return; //if search failed
    245245                //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
    255248                return;
    256249            }
Note: See TracChangeset for help on using the changeset viewer.