Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2006, 7:51:06 PM (18 years ago)
Author:
patrick
Message:

extended the callback function for message handlers to match the new sender/dest message structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/player_stats.cc

    r9508 r9521  
    212212}
    213213
    214 bool PlayerStats::changeNickHandler( MessageType messageType, byte * data, int dataLength, void * someData, int userId )
     214bool PlayerStats::changeNickHandler( MessageType messageType, byte * data, int dataLength, void * someData, int senderId, int destinationId )
    215215{
    216216  std::string newNick;
     
    219219  if ( res != dataLength )
    220220  {
    221     PRINTF(2)("invalid message size from user %d\n", userId);
     221    PRINTF(2)("invalid message size from user %d\n", senderId);
    222222    newNick = "invalid";
    223223  }
    224224
    225   if ( PlayerStats::getStats( userId ) )
    226     PlayerStats::getStats( userId )->setNickName( newNick );
     225  if ( PlayerStats::getStats( senderId) )
     226    PlayerStats::getStats( senderId )->setNickName( newNick );
    227227
    228228  return true;
Note: See TracChangeset for help on using the changeset viewer.