Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9466 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 25, 2006, 8:30:40 PM (18 years ago)
Author:
patrick
Message:

testing around with permissions: proxy should be able to handle a handshake and its local client and not more

Location:
branches/proxy/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/player_stats.cc

    r9452 r9466  
    191191void PlayerStats::setNickName( std::string nick )
    192192{
    193   if ( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive() )
     193  if ( SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/ )
    194194  {
    195195    this->nickName = nick;
  • branches/proxy/src/lib/network/synchronizeable.cc

    r9459 r9466  
    7272    this->networkStream->disconnectSynchronizeable(*this);
    7373
    74     if ( (SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive() )
     74    if ( (SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/ )
    7575           && this->beSynchronized() && this->getUniqueID() > 0 && !this->isA( CL_MESSAGE_MANAGER ) )
    7676      NetworkGameManager::getInstance()->removeSynchronizeable( this->getUniqueID() );
  • branches/proxy/src/story_entities/multi_player_world_data.cc

    r9452 r9466  
    112112  const TiXmlElement* element = NULL;
    113113
    114   if( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive())
     114  if( SharedNetworkData::getInstance()->isMasterServer())
    115115  {
    116116    /* load the spawning points */
     
    148148    element = element->FirstChildElement();
    149149
    150     if( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive())
     150    if( SharedNetworkData::getInstance()->isMasterServer() )
    151151    {
    152152      while( element != NULL)
     
    206206
    207207
    208     if( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive())
     208    if( SharedNetworkData::getInstance()->isMasterServer())
    209209    {
    210210      this->localPlayer = new Player();
     
    284284
    285285  // create server playable
    286   if ( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive())
     286  if ( SharedNetworkData::getInstance()->isMasterServer())
    287287  {
    288288    NetworkGameManager::getInstance()->signalNewPlayer( 0 );
  • branches/proxy/src/world_entities/spawning_point.cc

    r9455 r9466  
    178178      }
    179179
    180       if ( found && SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive())
     180      if ( found && SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/)
    181181        this->sendRespawnMessage( it->entity->getUniqueID() );
    182182
     
    218218bool SpawningPoint::respawnMessageHandler( MessageId messageId, byte * data, int dataLength, void * someData, int userId )
    219219{
    220   if ( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServerActive())
     220  if ( SharedNetworkData::getInstance()->isMasterServer() /*|| SharedNetworkData::getInstance()->isProxyServerActive()*/)
    221221  {
    222222    PRINTF(2)("server received spawn message!\n");
Note: See TracChangeset for help on using the changeset viewer.