Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9485 in orxonox.OLD for branches/proxy/src/lib/network


Ignore:
Timestamp:
Jul 26, 2006, 10:51:20 AM (18 years ago)
Author:
patrick
Message:

the proxy server receives to force clients creating world entities

File:
1 edited

Legend:

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

    r9483 r9485  
    965965          }
    966966
    967           // if the node we got this unknown sync from is a client we ignore it (since it has no rights to create a new sync)
    968           if ( peers[peer->second.userId].isClient() || peers[peer->second.userId].isProxyServerActive())
     967          // if the node we got this unknown sync we ignore it if:
     968          //  - the remote host is a client
     969          //  - the remote host is a proxy server and we are master server
     970          // (since it has no rights to create a new sync)
     971          if ( peers[peer->second.userId].isClient() ||
     972               (peers[peer->second.userId].isProxyServerActive() && SharedNetworkData::getInstance()->isMasterServer()))
    969973          {
    970974            offset += syncDataLength;
Note: See TracChangeset for help on using the changeset viewer.