Changeset 8826 for code/branches/output/src/orxonox/ChatHistory.cc
- Timestamp:
- Aug 6, 2011, 3:40:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/ChatHistory.cc
r8809 r8826 78 78 { 79 79 /* --> a) look up the actual name of the sender */ 80 std::string text ;80 std::string text = message; 81 81 82 82 #ifndef CHATTEST … … 84 84 if (senderID != NETWORK_PEER_ID_UNKNOWN) 85 85 { 86 /* if we can't find anything, use "unknown" as default */87 std::string name = "unknown";88 89 86 PlayerInfo* player = PlayerManager::getInstance().getClient(senderID); 90 87 if (player) 91 name = player->getName(); 92 93 text = name + ": " + message; 88 text = player->getName() + ": " + message; 94 89 } 95 else96 text = message;97 #else98 text = message;99 90 #endif 100 91
Note: See TracChangeset
for help on using the changeset viewer.