Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8245 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Jun 8, 2006, 2:31:50 PM (18 years ago)
Author:
rennerc
Message:

added printf on nick change

Location:
branches/network/src/lib/network
Files:
2 edited

Legend:

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

    r8244 r8245  
    5858  this->modelFileName = "";
    5959  this->nickName = "Player";
     60  this->oldNickName = "Player";
    6061 
    6162  userId_handle = registerVarId( new SynchronizeableInt( &userId, &userId, "userId" ) );
     
    9899  if ( std::find( id.begin(), id.end(), nickName_handler ) != id.end() )
    99100  {
    100     PRINTF(0)("user %d is now known as %s\n", userId, nickName.c_str());
     101    PRINTF(0)("user %s is now known as %s\n", oldNickName.c_str(), nickName.c_str());
     102    oldNickName = nickName;
    101103  }
    102104}
     
    187189  {
    188190    this->nickName = nick;
     191    PRINTF(0)("user %s is now known as %s\n", oldNickName.c_str(), nickName.c_str());
     192    oldNickName = nickName;
    189193    return;
    190194  }
  • branches/network/src/lib/network/player_stats.h

    r8236 r8245  
    6767
    6868    std::string nickName;      //!< players nickname
     69    std::string oldNickName;   //!< nickname player had before
    6970
    7071    int score;                 //!< users score points
Note: See TracChangeset for help on using the changeset viewer.