Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6220 in orxonox.OLD for branches/network


Ignore:
Timestamp:
Dec 21, 2005, 1:43:19 PM (19 years ago)
Author:
rennerc
Message:

network_stream: server now sends the entity list to clients

File:
1 edited

Legend:

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

    r6214 r6220  
    180180            NetworkManager::getInstance()->setHostID( handshakes[i]->getHostId() );
    181181            myHostId = NetworkManager::getInstance()->getHostID();
     182
     183            this->networkGameManager = new NetworkGameManager();
     184            this->networkGameManager->setUniqueID( handshakes[i]->getNetworkGameManagerId() );
     185            this->connectSynchronizeable( *(this->networkGameManager) );
     186          }
     187          else
     188          {
     189            this->networkGameManager->sendEntityList( i );
    182190          }
    183191          PRINT(0)("handshake finished\n");
    184192
    185           this->networkGameManager = new NetworkGameManager();
    186           this->networkGameManager->setUniqueID( handshakes[i]->getNetworkGameManagerId() );
    187           this->connectSynchronizeable( *(this->networkGameManager) );
    188193
    189194          delete handshakes[i];
Note: See TracChangeset for help on using the changeset viewer.