Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1015 for code


Ignore:
Timestamp:
Apr 10, 2008, 3:16:52 PM (17 years ago)
Author:
scheusso
Message:

blub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/GameStateManager.cc

    r1014 r1015  
    244244
    245245  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;
    247247    COUT(4) << "G.St.Man: a: id: " << a->id << " base_id: " << a->base_id << " size: " << a->size << " diffed: " << a->diffed << std::endl;
    248248    int size = a->size;
    249249    uLongf buffer = (uLongf)((a->size + 12)*1.01)+1;
     250    COUT(4) << "size: " << size << ", buffer: " << buffer << std::endl;
    250251    unsigned char* dest = (unsigned char*)malloc( buffer );
     252    COUT(4) << "dest: " << dest << std::endl;
    251253    int retval;
    252254    //std::cout << "before ziped " << buffer << std::endl;
    253255    retval = compress( dest, &buffer, a->data, (uLong)size );
     256    COUT(4) << "bloablabla aft3er compress" << std::endl;
    254257    //std::cout << "after ziped " << buffer << std::endl;
    255258
Note: See TracChangeset for help on using the changeset viewer.