Changeset 2176 for code/branches/objecthierarchy2/src
- Timestamp:
- Nov 11, 2008, 12:04:27 AM (16 years ago)
- Location:
- code/branches/objecthierarchy2/src/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/network/GamestateClient.cc
r2171 r2176 77 77 packet::Gamestate *processed = processGamestate(tempGamestate_); 78 78 // assert(processed); 79 if (!processed) 80 return false; 79 if (!processed){ 80 sendAck(0); 81 return false; 82 } 81 83 //successfully loaded data from gamestate. now save gamestate for diff and delete the old gs 82 84 tempGamestate_=NULL; -
code/branches/objecthierarchy2/src/network/GamestateManager.cc
r2171 r2176 50 50 #include "ClientInformation.h" 51 51 #include "Synchronisable.h" 52 #include "packet/Acknowledgement.h" 52 53 53 54 namespace orxonox … … 168 169 unsigned int curid = temp->getGamestateID(); 169 170 170 if(gamestateID == 0){171 if(gamestateID == ACKID_NACK){ 171 172 temp->setGamestateID(GAMESTATEID_INITIAL); 172 173 return true; -
code/branches/objecthierarchy2/src/network/packet/Acknowledgement.h
r2171 r2176 32 32 #include "Packet.h" 33 33 34 const unsigned int ACKID_NACK = 0; 34 35 35 36 namespace orxonox {
Note: See TracChangeset
for help on using the changeset viewer.