Changeset 7602 in orxonox.OLD for branches/network/src/lib/network/synchronizeable.cc
- Timestamp:
- May 12, 2006, 9:08:48 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.cc
r7591 r7602 52 52 /* make sure loadClassId is first synced var because this is read by networkStream */ 53 53 assert( syncVarList.size() == 0 ); 54 this->registerVar( new SynchronizeableInt( (int*)&this->getLeafClassID(), (int*)&this->getLeafClassID(), "leafClassId" ) );54 mLeafClassId = this->registerVarId( new SynchronizeableInt( (int*)&this->getLeafClassID(), (int*)&this->getLeafClassID(), "leafClassId" ) ); 55 55 56 56 this->registerVar( new SynchronizeableInt( &this->owner, &this->owner, "owner" ) ); … … 189 189 for ( int j = 0; j < (*it)->getSize(); it++ ) 190 190 { 191 assert(false); 191 192 stateTo->data[i] = 0; 192 193 i++; … … 321 322 void Synchronizeable::varChangeHandler( std::list<int> & id ) 322 323 { 324 for ( std::list<int>::iterator it = id.begin(); it != id.end(); it++ ) 325 assert( *it != mLeafClassId ); 323 326 } 324 327 … … 345 348 346 349 350
Note: See TracChangeset
for help on using the changeset viewer.