Changeset 8829 for code/branches/output/src/orxonox/chat/ChatHistory.cc
- Timestamp:
- Aug 7, 2011, 3:11:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/chat/ChatHistory.cc
r8828 r8829 74 74 75 75 /* react to incoming chat */ 76 void ChatHistory::incomingChat(const std::string& message, 77 unsigned int senderID) 76 void ChatHistory::incomingChat(const std::string& message, const std::string& /*name*/) 78 77 { 79 /* --> a) look up the actual name of the sender */80 std::string text = message;81 82 #ifndef CHATTEST83 /* get sender ID and prepend it to the message */84 if (senderID != NETWORK_PEER_ID_UNKNOWN)85 {86 PlayerInfo* player = PlayerManager::getInstance().getClient(senderID);87 if (player)88 text = player->getName() + ": " + message;89 }90 #endif91 92 78 /* add the line to the history */ 93 this->chat_hist_addline( text);79 this->chat_hist_addline( message ); 94 80 95 81 /* add the line to the log */ 96 this->chat_hist_logline( text);82 this->chat_hist_logline( message ); 97 83 } 98 84
Note: See TracChangeset
for help on using the changeset viewer.