Changeset 1016
- Timestamp:
- Apr 10, 2008, 3:31:07 PM (17 years ago)
- Location:
- code/branches/network/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/GameStateClient.cc
r1013 r1016 214 214 215 215 GameState *GameStateClient::decode(GameState *a, GameStateCompressed *x) { 216 GameState *t = deco mpress(x);216 GameState *t = decode(x); 217 217 gameStateList.push(t); 218 return undiff(a, t); 218 //return undiff(a, t); 219 return t; 219 220 } 220 221 221 222 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; 223 230 gameStateList.push(t); 224 231 return t; -
code/branches/network/src/network/GameStateManager.cc
r1015 r1016 197 197 GameState *r = b; 198 198 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; 200 208 } 201 209 … … 203 211 COUT(5) << "G.St.Man: this will be a not diffed gamestate" << std::endl; 204 212 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; 206 221 } 207 222
Note: See TracChangeset
for help on using the changeset viewer.