Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 7, 2008, 4:39:42 PM (16 years ago)
Author:
scheusso
Message:

different enhancements in input/network handling and synchronisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/network/PacketDecoder.cc

    r1233 r1245  
    7878      return true;
    7979    case GAMESTATE:
    80       gstate( packet );
     80      gstate( packet, clientId );
    8181      return true;
    8282    case CLASSID:
     
    155155  }
    156156
    157   void PacketDecoder::gstate( ENetPacket* packet )
     157  void PacketDecoder::gstate( ENetPacket* packet, int clientID )
    158158  {
    159159    GameStateCompressed* currentState = NULL;
     
    190190    //clean memory
    191191    enet_packet_destroy( packet );
    192     processGamestate(currentState);
     192    processGamestate(currentState, clientID);
    193193  }
    194194
     
    234234  }
    235235
    236   void PacketDecoder::processGamestate( GameStateCompressed *state )
     236  void PacketDecoder::processGamestate( GameStateCompressed *state, int clientID )
    237237  {
    238238    COUT(5) << "PacketDecoder: processing Gamestate" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.