Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9270 in orxonox.OLD for branches/proxy/src/lib/network/handshake.cc


Ignore:
Timestamp:
Jul 13, 2006, 2:13:29 PM (19 years ago)
Author:
patrick
Message:

processing the node type through the framework

File:
1 edited

Legend:

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

    r9269 r9270  
    2525
    2626
    27 Handshake::Handshake( bool server, int clientId, int networkGameManagerId, int messageManagerId )
     27Handshake::Handshake( int nodeType, int clientId, int networkGameManagerId, int messageManagerId )
    2828  : Synchronizeable()
    2929{
     
    3131  this->setClassID(CL_HANDSHAKE, "Handshake");
    3232
    33   this->setIsServer(server);
     33  this->setIsServer( nodeType == NET_MASTER_SERVER);
    3434
    3535  // register all variable handlers
     
    5858  localState.orxId = _ORXONOX_ID;
    5959  localState.version = _ORXONOX_VERSION;
    60   localState.nodeType = NET_CLIENT;
     60  localState.nodeType = nodeType;
    6161  localState.canDel = 0;
    6262
Note: See TracChangeset for help on using the changeset viewer.