Changeset 7337 for code/branches
- Timestamp:
- Sep 3, 2010, 3:46:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network3/src/libraries/network/packet/Gamestate.cc
r7333 r7337 510 510 assert(dest < newData + newDataSize); 511 511 assert(sizes != this->sizes_.end()); 512 bool diffedObject = false; 512 513 while ( baseData < baseDataEnd ) 513 514 { … … 519 520 // goto DODIFF; 520 521 diffObject(dest, origData, baseData, h, sizes); 522 diffedObject = true; 523 break; 521 524 } 522 525 { … … 529 532 } 530 533 } 534 baseData += htemp.getDataSize()+SynchronisableHeader::getSize(); 531 535 // assert( baseData+htemp.getDataSize()+SynchronisableHeader::getSize() <=baseData+baseLength ); 532 536 // temp += htemp.getDataSize()+SynchronisableHeader::getSize(); 533 537 534 538 } 535 539 // If not found start looking at the beginning 536 assert( baseData == baseDataEnd );540 assert( diffedObject || baseData == baseDataEnd ); 537 541 baseData = GAMESTATE_START(base->data_); 538 542 { … … 545 549 } 546 550 } 547 while ( baseData < baseDataEnd )551 while ( !diffedObject && baseData < baseDataEnd ) 548 552 { 549 553 SynchronisableHeader htemp(baseData); … … 574 578 assert(sizes != this->sizes_.end() || origData>=origDataEnd); 575 579 } 576 577 }580 } 581 assert(sizes==this->sizes_.end()); 578 582 579 583
Note: See TracChangeset
for help on using the changeset viewer.