Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2009, 6:01:05 PM (15 years ago)
Author:
scheusso
Message:

fixed a problem with gamestate caching and diffing

File:
1 edited

Legend:

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

    r2655 r2660  
    113113    //why are we searching the same client's gamestate id as we searched in
    114114    //Server::sendGameState?
    115     packet::Gamestate *gs;
     115    packet::Gamestate *gs, *temp;
    116116    unsigned int gID = ClientInformation::findClient(clientID)->getGamestateID();
    117117    if(!reference)
    118118      return 0;
    119119    gs = reference->doSelection(clientID, 10000);
     120    temp = gs;
    120121//     gs = new packet::Gamestate(*reference);
    121122    // save the (undiffed) gamestate in the clients gamestate map
     
    142143    bool b = gs->compressData();
    143144    assert(b);
     145    COUT(4) << "sending gamestate with id " << gs->getID();
     146    if(gs->isDiffed())
     147    COUT(4) << " and baseid " << gs->getBaseID() << endl;
     148    else
     149    COUT(4) << endl;
    144150    return gs;
    145151  }
Note: See TracChangeset for help on using the changeset viewer.