Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2007, 12:42:46 PM (17 years ago)
Author:
scheusso
Message:

extended gamestatehandling for diffed and not diffed gamestates (initial states, etc)

File:
1 edited

Legend:

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

    r416 r436  
    1313
    1414bool GameStateClient::pushGameState(GameStateCompressed compstate){
    15   return loadSnapshot(decode(reference, compstate));
     15  if(compstate.diffed)
     16    return loadSnapshot(decode(reference, compstate));
     17  else
     18    return loadSnapshot(decode(compstate));
    1619}
    1720
     
    127130  gamestate.size = normsize;
    128131  gamestate.data = dest;
     132  gamestate.diffed = a.diffed;
    129133 
    130134  return gamestate;
     
    137141}
    138142
     143GameState GameStateClient::decode(GameStateCompressed x){
     144  GameState t = decompress(x);
     145  return t;
     146}
     147
    139148
    140149
Note: See TracChangeset for help on using the changeset viewer.