Changeset 8245 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Jun 8, 2006, 2:31:50 PM (18 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/player_stats.cc
r8244 r8245 58 58 this->modelFileName = ""; 59 59 this->nickName = "Player"; 60 this->oldNickName = "Player"; 60 61 61 62 userId_handle = registerVarId( new SynchronizeableInt( &userId, &userId, "userId" ) ); … … 98 99 if ( std::find( id.begin(), id.end(), nickName_handler ) != id.end() ) 99 100 { 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; 101 103 } 102 104 } … … 187 189 { 188 190 this->nickName = nick; 191 PRINTF(0)("user %s is now known as %s\n", oldNickName.c_str(), nickName.c_str()); 192 oldNickName = nickName; 189 193 return; 190 194 } -
branches/network/src/lib/network/player_stats.h
r8236 r8245 67 67 68 68 std::string nickName; //!< players nickname 69 std::string oldNickName; //!< nickname player had before 69 70 70 71 int score; //!< users score points
Note: See TracChangeset
for help on using the changeset viewer.