Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2006, 1:12:57 AM (18 years ago)
Author:
patrick
Message:

other unique id offset

File:
1 edited

Legend:

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

    r9357 r9374  
    1818#include "shared_network_data.h"
    1919#include "netdefs.h"
     20#include "state.h"
    2021
    2122
     
    3536  this->hostID = -1;
    3637  this->defaultSyncStream = NULL;
    37   this->newUniqueID = NET_MAX_CONNECTIONS + 2;
     38
     39  if(State::isOnline())
     40    this->newUniqueID = ProxySettings::getInstance()->getMaxPlayer() + 2;
     41  else
     42    this->newUniqueID = NET_MAX_CONNECTIONS + 2;
    3843  this->nodeType = NET_CLIENT;
    3944}
Note: See TracChangeset for help on using the changeset viewer.