Changeset 915 for code/branches/network
- Timestamp:
- Mar 20, 2008, 4:44:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/PacketDecoder.cc
r914 r915 154 154 //copy the GameStateCompressed id into the struct, which is located at second place data+sizeof( int ) 155 155 //memcpy( (void*)&(currentState->id), (const void*)(data+sizeof( int )), sizeof( int ) ); 156 currentState->id = *((int *)packet->data+sizeof(int));156 //currentState->id = *((int *)packet->data+sizeof(int)); 157 157 memcpy( (void*)&(currentState->id), (const void*)(packet->data+1*sizeof( int )), sizeof( int) ); 158 158 COUT(5) << "decoder: received gs id: " << currentState->id << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.