Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 8, 2008, 2:21:00 PM (16 years ago)
Author:
scheusso
Message:

compressing and diffing works now (also shipCache on client). server can't move while client connected. preparations for synchronise frequency of synchronisables

File:
1 edited

Legend:

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

    r1741 r1742  
    131131    packet::Gamestate *gs;
    132132    int gID = ClientInformation::findClient(clientID)->getGamestateID();
    133     COUT(4) << "G.St.Man: popgamestate: sending gstate_id: " << id_ << " diffed from: " << gID << std::endl;
    134 //     COUT(3) << "gamestatemap: " << &gameStateMap << std::endl;
     133    //COUT(4) << "G.St.Man: popgamestate: sending gstate_id: " << id_ << " diffed from: " << gID << std::endl;
    135134    //chose wheather the next gamestate is the first or not
    136135    if(gID != GAMESTATEID_INITIAL){
     
    147146      gs = new packet::Gamestate(*reference);
    148147    }
    149 #ifndef NDEBUG
    150     packet::Gamestate *ns = new packet::Gamestate(*gs);
    151     ns->compressData();
    152     ns->decompressData();
    153     assert(*gs==*ns);
    154     delete ns;
    155 #endif
    156148    assert(gs->compressData());
    157149    return gs;
Note: See TracChangeset for help on using the changeset viewer.