Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6661 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Jan 23, 2006, 3:50:35 PM (18 years ago)
Author:
patrick
Message:

network: dont get the sync process to run again.

Location:
branches/network/src/lib/network
Files:
3 edited

Legend:

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

    r6341 r6661  
    3434  this->setOwner(0);
    3535
     36  this->setSynchronized(true);
    3637  PRINTF(5)("Handshake created clientId = %d\n", clientId);
    3738}
  • branches/network/src/lib/network/network_game_manager.cc

    r6660 r6661  
    4646 */
    4747NetworkGameManager::NetworkGameManager()
     48  : Synchronizeable()
    4849{
    4950  PRINTF(0)("START\n");
     
    5556
    5657  hasRequestedWorld = false;
     58  this->setSynchronized(true);
    5759}
    5860
  • branches/network/src/lib/network/network_stream.cc

    r6660 r6661  
    126126  // and one for handshake to reject client maxCon+1
    127127  this->networkGameManager->setUniqueID( this->maxConnections + 2 );
    128   this->connectSynchronizeable( *(this->networkGameManager) );
     128  //this->connectSynchronizeable( *(this->networkGameManager) );
    129129  this->setMaxConnections( 10 );
    130130}
     
    199199            this->networkGameManager = NetworkGameManager::getInstance();
    200200            this->networkGameManager->setUniqueID( handshakes[i]->getNetworkGameManagerId() );
    201             this->connectSynchronizeable( *(this->networkGameManager) );
     201            //this->connectSynchronizeable( *(this->networkGameManager) );
    202202          }
    203203          else
     
    369369    PRINTF(0)("New Client: %d\n", clientId);
    370370
    371     this->connectSynchronizeable(*handshakes[clientId]);
     371    //this->connectSynchronizeable(*handshakes[clientId]);
    372372  }
    373373
     
    439439  for (SynchronizeableList::iterator it = synchronizeables.begin(); it!=synchronizeables.end(); it++)
    440440  {
    441     if( (*it)->beSynchronized() == true)
     441    //if( (*it)->beSynchronized() == true)
    442442      PRINT(0)("  Synchronizeable of class: %s::%s, with unique ID: %i, Synchronize: %i\n", (*it)->getClassName(), (*it)->getName(),
    443443               (*it)->getUniqueID(), (*it)->beSynchronized());
Note: See TracChangeset for help on using the changeset viewer.