Changeset 1245 for code/branches/network3/src/network/PacketDecoder.cc
- Timestamp:
- May 7, 2008, 4:39:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network3/src/network/PacketDecoder.cc
r1233 r1245 78 78 return true; 79 79 case GAMESTATE: 80 gstate( packet );80 gstate( packet, clientId ); 81 81 return true; 82 82 case CLASSID: … … 155 155 } 156 156 157 void PacketDecoder::gstate( ENetPacket* packet )157 void PacketDecoder::gstate( ENetPacket* packet, int clientID ) 158 158 { 159 159 GameStateCompressed* currentState = NULL; … … 190 190 //clean memory 191 191 enet_packet_destroy( packet ); 192 processGamestate(currentState );192 processGamestate(currentState, clientID); 193 193 } 194 194 … … 234 234 } 235 235 236 void PacketDecoder::processGamestate( GameStateCompressed *state )236 void PacketDecoder::processGamestate( GameStateCompressed *state, int clientID ) 237 237 { 238 238 COUT(5) << "PacketDecoder: processing Gamestate" << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.