Changeset 9375 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 21, 2006, 11:26:03 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9374 r9375 625 625 for ( SynchronizeableList::iterator it = synchronizeables.begin(); it != synchronizeables.end(); it++ ) 626 626 { 627 627 628 int oldOffset = offset; 628 629 Synchronizeable & sync = **it; 630 629 631 630 632 // do not include synchronizeables with uninit id and syncs that don't want to be synchronized … … 644 646 if ( sync.getLeafClassID() == CL_NULL_PARENT ) 645 647 continue; 648 646 649 647 650 assert( sync.getLeafClassID() != 0); … … 658 661 offset += n; 659 662 660 // make space for size663 // make space for packet size 661 664 offset += INTSIZE; 662 665 -
branches/proxy/src/lib/network/shared_network_data.cc
r9374 r9375 37 37 this->defaultSyncStream = NULL; 38 38 39 if( State::isOnline())39 if( State::isOnline()) 40 40 this->newUniqueID = ProxySettings::getInstance()->getMaxPlayer() + 2; 41 41 else -
branches/proxy/src/lib/network/synchronizeable.cc
r9371 r9375 207 207 n = (*it)->writeToBuf( stateTo->data+i, stateTo->dataLength - i ); 208 208 //NETPRINTF(0)("getvar %s %d\n", (*it)->getName().c_str(), n); 209 PRINTF(0)("getvar %s %d\n", (*it)->getName().c_str(), n); 209 210 stateTo->sizeList.push_back( n ); 210 //(*it)->debug(); 211 // this is only for very hardcore debug sessions 212 // (*it)->debug(); 211 213 i += n; 212 214 } … … 325 327 i += n; 326 328 //NETPRINTF(0)("%s::setvar %s %d\n", getClassName(), (*it)->getName().c_str(), n); 329 PRINTF(0)("%s::setvar %s %d\n", getClassName().c_str(), (*it)->getName().c_str(), n); 327 330 //(*it)->debug(); 328 331 if ( (*it)->getHasChanged() )
Note: See TracChangeset
for help on using the changeset viewer.