- Timestamp:
- Jun 30, 2009, 3:14:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/network/packet/Acknowledgement.cc
r3214 r3257 37 37 #define PACKET_FLAGS_ACK 0 38 38 #define _PACKETID 0 39 #define _ACKID _PACKETID + sizeof(packet:: ENUM::Type)39 #define _ACKID _PACKETID + sizeof(packet::Type::Value) 40 40 41 41 Acknowledgement::Acknowledgement( unsigned int id, unsigned int clientID ) … … 44 44 flags_ = flags_ | PACKET_FLAGS_ACK; 45 45 data_=new uint8_t[ getSize() ]; 46 *( ENUM::Type *)(data_ + _PACKETID ) = ENUM::Acknowledgement;46 *(Type::Value *)(data_ + _PACKETID ) = Type::Acknowledgement; 47 47 *(uint32_t *)(data_ + _ACKID ) = id; 48 48 clientID_=clientID;
Note: See TracChangeset
for help on using the changeset viewer.