Changeset 7344 for code/branches/network3/src/libraries/network/packet
- Timestamp:
- Sep 3, 2010, 11:54:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network3/src/libraries/network/packet/Gamestate.cc
r7337 r7344 373 373 uint32_t objectOffset = SynchronisableHeader::getSize(); // offset inside the object in the origData and baseData 374 374 // Check whether the whole object stayed the same 375 if( memcmp( origData+objectOffset, newData+objectOffset, objectHeader.getDataSize()) == 0 )375 if( memcmp( origData+objectOffset, baseData+objectOffset, objectHeader.getDataSize()) == 0 ) 376 376 { 377 377 // COUT(4) << "skip object" << Synchronisable::getSynchronisable(h.getObjectID())->getIdentifier()->getName() << endl; … … 430 430 h2.setDataSize(newObjectOffset-SynchronisableHeaderLight::getSize()); 431 431 assert(objectOffset == objectHeader.getDataSize()+SynchronisableHeader::getSize()); 432 assert(h2.getDataSize()>0); 432 433 origData += objectOffset; 433 434 // baseOffset += temp + h.getDataSize()+SynchronisableHeader::getSize() - baseData;
Note: See TracChangeset
for help on using the changeset viewer.