Changeset 7575 in orxonox.OLD for branches/network/src/lib/network/synchronizeable.cc
- Timestamp:
- May 10, 2006, 4:48:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.cc
r7565 r7575 41 41 this->networkStream = NULL; 42 42 this->bSynchronize = false; 43 this->mLeafClassId = getLeafClassID(); 44 43 45 44 if( State::isOnline()) 46 45 { … … 53 52 /* make sure loadClassId is first synced var because this is read by networkStream */ 54 53 assert( syncVarList.size() == 0 ); 55 this->registerVar( new SynchronizeableInt( &this->mLeafClassId, &this->mLeafClassId, "leafClassId" ) );56 54 this->registerVar( new SynchronizeableInt( (int*)&this->getLeafClassID(), (int*)&this->getLeafClassID(), "leafClassId" ) ); 55 57 56 this->registerVar( new SynchronizeableInt( &this->owner, &this->owner, "owner" ) ); 58 57 this->registerVar( new SynchronizeableString( &this->objectName, &this->objectName, "objectName" ) ); … … 309 308 this->varChangeHandler( changes ); 310 309 311 assert( i == length -1);310 assert( i == length ); 312 311 313 312 return length;
Note: See TracChangeset
for help on using the changeset viewer.