Changeset 8327 for code/trunk/src/orxonox/gametypes/LastTeamStanding.cc
- Timestamp:
- Apr 25, 2011, 8:22:36 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/network6 (added) merged: 7823-7825,7875,7878,7881-7882,7898,7900,7931,8315
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/gametypes/LastTeamStanding.cc
r8234 r8327 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "network/NetworkPrereqs.h" 32 33 #include "network/Host.h" 33 34 #include "infos/PlayerInfo.h" … … 135 136 if (it != this->players_.end()) 136 137 { 137 if (it->first->getClientID()== CLIENTID_UNKNOWN)138 if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN) 138 139 return true; 139 140 const std::string& message = ""; // resets Camper-Warning-message … … 169 170 if (it != this->players_.end()) 170 171 { 171 if (it->first->getClientID()== CLIENTID_UNKNOWN)172 if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN) 172 173 return; 173 174 const std::string& message = ""; // resets Camper-Warning-message … … 196 197 this->inGame_[it->first] = true; 197 198 198 if (it->first->getClientID()== CLIENTID_UNKNOWN)199 if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN) 199 200 continue; 200 201 int output = 1 + (int)playerDelayTime_[it->first]; … … 208 209 { 209 210 this->punishPlayer(it->first); 210 if (it->first->getClientID() == CLIENTID_UNKNOWN)211 if (it->first->getClientID() == NETWORK_PEER_ID_UNKNOWN) 211 212 return; 212 213 const std::string& message = ""; // resets Camper-Warning-message … … 216 217 else if (it->second < timeRemaining/5)//Warning message 217 218 { 218 if (it->first->getClientID()== CLIENTID_UNKNOWN)219 if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN) 219 220 continue; 220 221 const std::string& message = "Camper Warning! Don't forget to shoot."; … … 232 233 for (std::map<PlayerInfo*, int>::iterator it = this->playerLives_.begin(); it != this->playerLives_.end(); ++it) 233 234 { 234 if (it->first->getClientID() == CLIENTID_UNKNOWN)235 if (it->first->getClientID() == NETWORK_PEER_ID_UNKNOWN) 235 236 continue; 236 237 … … 247 248 for (std::map<PlayerInfo*, int>::iterator it3 = this->teamnumbers_.begin(); it3 != this->teamnumbers_.end(); ++it3) 248 249 { 249 if (it3->first->getClientID() == CLIENTID_UNKNOWN)250 if (it3->first->getClientID() == NETWORK_PEER_ID_UNKNOWN) 250 251 continue; 251 252 if (it3->second == party)
Note: See TracChangeset
for help on using the changeset viewer.