Changeset 1015 for code/branches/network/src
- Timestamp:
- Apr 10, 2008, 3:16:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/GameStateManager.cc
r1014 r1015 244 244 245 245 GameStateCompressed *GameStateManager::compress_(GameState *a) { 246 COUT( 5) << "G.St.Man: compressing gamestate" << std::endl;246 COUT(4) << "G.St.Man: compressing gamestate" << std::endl; 247 247 COUT(4) << "G.St.Man: a: id: " << a->id << " base_id: " << a->base_id << " size: " << a->size << " diffed: " << a->diffed << std::endl; 248 248 int size = a->size; 249 249 uLongf buffer = (uLongf)((a->size + 12)*1.01)+1; 250 COUT(4) << "size: " << size << ", buffer: " << buffer << std::endl; 250 251 unsigned char* dest = (unsigned char*)malloc( buffer ); 252 COUT(4) << "dest: " << dest << std::endl; 251 253 int retval; 252 254 //std::cout << "before ziped " << buffer << std::endl; 253 255 retval = compress( dest, &buffer, a->data, (uLong)size ); 256 COUT(4) << "bloablabla aft3er compress" << std::endl; 254 257 //std::cout << "after ziped " << buffer << std::endl; 255 258
Note: See TracChangeset
for help on using the changeset viewer.