- Timestamp:
- Feb 14, 2009, 6:01:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/network/GamestateClient.cc
r2655 r2660 75 75 if(tempGamestate_==NULL) 76 76 return false; 77 bool isDiffed = tempGamestate_->isDiffed(); 77 78 int id = GAMESTATEID_INITIAL; 78 79 packet::Gamestate *processed = processGamestate(tempGamestate_); … … 83 84 84 85 if (!processed){ 85 //sendAck(0);86 sendAck(0); 86 87 return false; 87 88 } … … 89 90 tempGamestate_=NULL; 90 91 gamestateMap_[processed->getID()]=processed; 91 last_diff_ = processed->getID(); 92 if(isDiffed) 93 last_diff_ = processed->getBaseID(); 92 94 id = processed->getID(); 93 //sendAck(id);95 sendAck(id); 94 96 return true; 95 97 } … … 160 162 packet::Gamestate *base = gamestateMap_[gs->getBaseID()]; 161 163 if(!base){ 162 COUT(0) << "could not find base gamestate id: " << gs->getBaseID() << endl;164 COUT(3) << "could not find base gamestate id: " << gs->getBaseID() << endl; 163 165 delete gs; 164 166 return 0; … … 173 175 return gs; 174 176 else 175 COUT(0) << "could not spread gamestate" << endl; 177 { 178 COUT(3) << "could not spread gamestate" << endl; 176 179 return NULL; 180 } 177 181 } 178 182
Note: See TracChangeset
for help on using the changeset viewer.