Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9533 in orxonox.OLD for branches/proxy/src


Ignore:
Timestamp:
Jul 27, 2006, 10:24:00 PM (18 years ago)
Author:
patrick
Message:

the hanshake synch unique id correction adjusted to new address space

File:
1 edited

Legend:

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

    r9532 r9533  
    802802      if ( ( SharedNetworkData::getInstance()->isMasterServer() ||
    803803             SharedNetworkData::getInstance()->isProxyServerActive() &&  peer->second.isClient() ) &&
    804              sync.getUniqueID() <= SharedNetworkData::getInstance()->getMaxPlayer() + 1) // plus one to handle one client more than the max to redirect it
    805         n = Converter::intToByteArray( SharedNetworkData::getInstance()->getHostID()*1000, buf + offset, UDP_PACKET_SIZE - offset );
     804             sync.getUniqueID() >= 1000
     805             /*<= SharedNetworkData::getInstance()->getMaxPlayer() + 1*/) // plus one to handle one client more than the max to redirect it
     806        n = Converter::intToByteArray( 0, buf + offset, UDP_PACKET_SIZE - offset );
    806807      else
    807808        n = Converter::intToByteArray( sync.getUniqueID(), buf + offset, UDP_PACKET_SIZE - offset );
Note: See TracChangeset for help on using the changeset viewer.