Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2007, 12:28:42 AM (16 years ago)
Author:
dumenim
Message:

networkstuff bluber fubber

File:
1 edited

Legend:

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

    r630 r632  
    109109    //get size of the synchronisable
    110110    tempsize=it->getSize();
     111    //std::cout << "size of temp gamestate: " << tempsize << std::endl;
    111112    //COUT(2) << "size of synchronisable: " << tempsize << std::endl;
    112113    // add place for data and 3 ints (length,classid,objectid)
    113114    totalsize+=tempsize+3*sizeof(int);
     115    //std::cout << "totalsize: " << totalsize << std::endl;
    114116    // allocate additional space
    115117    if(totalsize+tempsize>memsize){
     
    188190  unsigned char* dest = (unsigned char*)malloc( buffer );
    189191  int retval;
     192  //std::cout << "before ziped " << buffer << std::endl;
    190193  retval = compress( dest, &buffer, a->data, (uLong)size );
     194  //std::cout << "after ziped " << buffer << std::endl;
    191195
    192196  switch ( retval ) {
     
    199203  GameStateCompressed compressedGamestate;
    200204  compressedGamestate.compsize = buffer;
     205  //std::cout << "compressedGamestate.compsize = buffer; " << buffer << std::endl;
    201206  compressedGamestate.normsize = size;
     207  //std::cout << "compressedGamestate.normsize = size; " << size << std::endl;
    202208  compressedGamestate.id = a->id;
    203209  compressedGamestate.data = dest;
Note: See TracChangeset for help on using the changeset viewer.