Changeset 1769 for code/trunk/src/network/packet
- Timestamp:
- Sep 11, 2008, 5:06:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/packet/Acknowledgement.cc
r1763 r1769 31 31 #include "network/Host.h" 32 32 #include "network/GamestateHandler.h" 33 #include "core/CoreIncludes.h" 33 34 34 35 namespace network { … … 63 64 64 65 bool Acknowledgement::process(){ 65 bool b = GamestateHandler::ackGamestate( data_[_ACKID], clientID_);66 bool b = GamestateHandler::ackGamestate(getAckID(), clientID_); 66 67 delete this; 67 68 return b; … … 69 70 70 71 unsigned int Acknowledgement::getAckID(){ 71 return *(unsigned int *) &data_[ _ACKID ];72 return *(unsigned int *)(data_ + _ACKID); 72 73 } 73 74
Note: See TracChangeset
for help on using the changeset viewer.