- Timestamp:
- Dec 11, 2010, 4:12:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network4/src/libraries/network/packet/Gamestate.cc
r7754 r7755 65 65 66 66 Gamestate::Gamestate(): 67 header_( 0)67 header_() 68 68 { 69 69 flags_ = flags_ | PACKET_FLAG_GAMESTATE; … … 176 176 uint8_t *mem=data_+GamestateHeader::getSize(); 177 177 Synchronisable *s; 178 178 179 179 // update the data of the objects we received 180 180 while(mem < data_+GamestateHeader::getSize()+header_.getDataSize()) … … 191 191 else 192 192 { 193 // COUT(4) << "not creating object of classid " << objectheader.getClassID() << endl; 193 194 mem += objectheader.getDataSize() + ( objectheader.isDiffed() ? SynchronisableHeaderLight::getSize() : SynchronisableHeader::getSize() ); 194 195 } … … 196 197 else 197 198 { 199 // COUT(4) << "updating object of classid " << objectheader.getClassID() << endl; 198 200 bool b = s->updateData(mem, mode); 199 201 assert(b); … … 303 305 header_.setCompSize( buffer ); 304 306 header_.setCompressed( true ); 305 COUT( 0) << "gamestate compress datasize: " << header_.getDataSize() << " compsize: " << header_.getCompSize() << std::endl;307 COUT(4) << "gamestate compress datasize: " << header_.getDataSize() << " compsize: " << header_.getCompSize() << std::endl; 306 308 return true; 307 309 }
Note: See TracChangeset
for help on using the changeset viewer.