- Timestamp:
- Jan 18, 2010, 12:05:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network2/src/libraries/network/GamestateClient.cc
r6449 r6450 161 161 assert(b); 162 162 } 163 // if(gs->isDiffed()){ 163 if(gs->isDiffed()) 164 { 165 assert(0); 164 166 // packet::Gamestate *base = gamestateMap_[gs->getBaseID()]; 165 // if(!base){ 166 // COUT(3) << "could not find base gamestate id: " << gs->getBaseID() << endl; 167 // if(!base) 168 // { 169 // COUT(0) << "could not find base gamestate id: " << gs->getBaseID() << endl; 170 // assert(0); 167 171 // delete gs; 168 172 // return 0; 169 173 // } 170 // // assert(base); //TODO: fix this171 174 // packet::Gamestate *undiffed = gs->undiff(base); 172 175 // delete gs; 173 176 // gs=undiffed; 174 177 // COUT(5) << "successfully undiffed gamestate id: " << undiffed->getID() << std::endl; 175 //}178 } 176 179 if(gs->spreadData(0x2)) 177 180 return gs; 178 181 else 179 182 { 180 COUT(3) << "could not spread gamestate" << endl; 183 COUT(0) << "could not spread gamestate" << endl; 184 assert(0); 181 185 return NULL; 182 186 }
Note: See TracChangeset
for help on using the changeset viewer.