Changeset 10114 in orxonox.OLD for trunk/src/lib/network/synchronizeable.cc
- Timestamp:
- Dec 19, 2006, 11:55:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/synchronizeable.cc
r9869 r10114 30 30 31 31 #include "converter.h" 32 33 #include "synchronizeable_var/synchronizeable_classid.h" 32 34 33 35 … … 56 58 /* make sure loadClassId is first synced var because this is read by networkStream */ 57 59 assert( syncVarList.size() == 0 ); 58 mLeafClassId = this->registerVarId( new SynchronizeableInt( (int*)&this->getLeafClassID(), (int*)&this->getLeafClassID(), "leafClassId", PERMISSION_MASTER_SERVER) ); 60 assert( this->getClassID() == this->objectList().id() ); 61 62 mLeafClassId = this->registerVarId( new SynchronizeableClassID( this, "leafClassId", PERMISSION_MASTER_SERVER) ); 59 63 60 64 this->registerVar( new SynchronizeableInt( &this->owner, &this->owner, "owner", PERMISSION_MASTER_SERVER ) ); … … 267 271 // PRINTF(0)("sending %s %d\n", (*it)->getName().c_str(), n); 268 272 269 // if( this->isA( CL_PLAYABLE))273 // if( this->isA( Playable::staticClassID() )) 270 274 // { 271 275 // PRINTF(0)("ms: %i, ps: %i, c: %i, sender: %i, reciever: %i, owner: %i, perm: (ow %i, ms %i, s %i, a %i)\n", … … 453 457 //(*it)->debug(); 454 458 455 // if( this->isA( CL_PLAYABLE))459 // if( this->isA(Playable::staticClassID())) 456 460 // { 457 461 // PRINTF(0)("ms: %i, ps: %i, c: %i, sender: %i, reciever: %i, owner: %i, perm: (ow %i, ms %i, s %i, a %i)\n",
Note: See TracChangeset
for help on using the changeset viewer.