Changeset 2552
- Timestamp:
- Dec 30, 2008, 5:43:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/network/GamestateManager.cc
r2485 r2552 136 136 //why are we searching the same client's gamestate id as we searched in 137 137 //Server::sendGameState? 138 packet::Gamestate *gs ;138 packet::Gamestate *gs, *tempgs; 139 139 unsigned int gID = ClientInformation::findClient(clientID)->getGamestateID(); 140 140 if(!reference) … … 156 156 if(client){ 157 157 // COUT(3) << "diffing" << std::endl; 158 gs = gs->diff(client); 158 tempgs = gs->diff(client); 159 delete gs; 160 gs = tempgs; 159 161 } 160 162 else{ 161 163 // COUT(3) << "not diffing" << std::endl; 162 gs = new packet::Gamestate(*gs); 164 // gs = new packet::Gamestate(*gs); //not necessary 163 165 } 164 166 bool b = gs->compressData();
Note: See TracChangeset
for help on using the changeset viewer.