Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2011, 8:22:36 PM (13 years ago)
Author:
scheusso
Message:

merging network6 into trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/gametypes/LastTeamStanding.cc

    r8234 r8327  
    3030
    3131#include "core/CoreIncludes.h"
     32#include "network/NetworkPrereqs.h"
    3233#include "network/Host.h"
    3334#include "infos/PlayerInfo.h"
     
    135136            if (it != this->players_.end())
    136137            {
    137                 if (it->first->getClientID()== CLIENTID_UNKNOWN)
     138                if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    138139                    return true;
    139140                const std::string& message = ""; // resets Camper-Warning-message
     
    169170        if (it != this->players_.end())
    170171        {
    171             if (it->first->getClientID()== CLIENTID_UNKNOWN)
     172            if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    172173                return;
    173174            const std::string& message = ""; // resets Camper-Warning-message
     
    196197                    this->inGame_[it->first] = true;
    197198
    198                     if (it->first->getClientID()== CLIENTID_UNKNOWN)
     199                    if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    199200                        continue;
    200201                    int output = 1 + (int)playerDelayTime_[it->first];
     
    208209                    {
    209210                        this->punishPlayer(it->first);
    210                         if (it->first->getClientID() == CLIENTID_UNKNOWN)
     211                        if (it->first->getClientID() == NETWORK_PEER_ID_UNKNOWN)
    211212                            return;
    212213                        const std::string& message = ""; // resets Camper-Warning-message
     
    216217                else if (it->second < timeRemaining/5)//Warning message
    217218                {
    218                     if (it->first->getClientID()== CLIENTID_UNKNOWN)
     219                  if (it->first->getClientID()== NETWORK_PEER_ID_UNKNOWN)
    219220                        continue;
    220221                    const std::string& message = "Camper Warning! Don't forget to shoot.";
     
    232233        for (std::map<PlayerInfo*, int>::iterator it = this->playerLives_.begin(); it != this->playerLives_.end(); ++it)
    233234        {
    234             if (it->first->getClientID() == CLIENTID_UNKNOWN)
     235          if (it->first->getClientID() == NETWORK_PEER_ID_UNKNOWN)
    235236                continue;
    236237
     
    247248                for (std::map<PlayerInfo*, int>::iterator it3 = this->teamnumbers_.begin(); it3 != this->teamnumbers_.end(); ++it3)
    248249                {
    249                     if (it3->first->getClientID() == CLIENTID_UNKNOWN)
     250                  if (it3->first->getClientID() == NETWORK_PEER_ID_UNKNOWN)
    250251                        continue;
    251252                    if (it3->second == party)
Note: See TracChangeset for help on using the changeset viewer.