Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1016


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

blub

Location:
code/branches/network/src/network
Files:
2 edited

Legend:

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

    r1013 r1016  
    214214
    215215  GameState *GameStateClient::decode(GameState *a, GameStateCompressed *x) {
    216     GameState *t = decompress(x);
     216    GameState *t = decode(x);
    217217    gameStateList.push(t);
    218     return undiff(a, t);
     218    //return undiff(a, t);
     219    return t;
    219220  }
    220221
    221222  GameState *GameStateClient::decode(GameStateCompressed *x) {
    222     GameState *t = decompress(x);
     223    //GameState *t = decompress(x);
     224    GameState *t = new GameState;
     225    t->base_id = x->base_id;
     226    t->id = x->id;
     227    t->diffed = x->diffed;
     228    t->data = x->data;
     229    t->size = x->normsize;
    223230    gameStateList.push(t);
    224231    return t;
  • code/branches/network/src/network/GameStateManager.cc

    r1015 r1016  
    197197    GameState *r = b;
    198198    r->diffed = false;
    199     return compress_(r);
     199    //return compress_(r);
     200    GameStateCompressed *g = new GameStateCompressed;
     201    g->base_id = b->base_id;
     202    g->id = b->id;
     203    g->diffed = b->diffed;
     204    g->data = b->data;
     205    g->normsize = b->size;
     206    g->compsize = b->size;
     207    return g;
    200208  }
    201209
     
    203211    COUT(5) << "G.St.Man: this will be a not diffed gamestate" << std::endl;
    204212    a->diffed=false;
    205     return compress_(a);
     213    GameStateCompressed *g = new GameStateCompressed;
     214    g->base_id = a->base_id;
     215    g->id = a->id;
     216    g->diffed = a->diffed;
     217    g->data = a->data;
     218    g->normsize = a->size;
     219    g->compsize = a->size;
     220    return g;
    206221  }
    207222
Note: See TracChangeset for help on using the changeset viewer.