- Timestamp:
- Aug 6, 2011, 3:40:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/modules/overlays/hud/ChatOverlay.cc
r8825 r8826 69 69 void ChatOverlay::incomingChat(const std::string& message, unsigned int senderID) 70 70 { 71 std::string text ;71 std::string text = message; 72 72 73 73 if (senderID != NETWORK_PEER_ID_UNKNOWN) 74 74 { 75 std::string name = "unknown";76 77 75 PlayerInfo* player = PlayerManager::getInstance().getClient(senderID); 78 76 if (player) 79 name = player->getName(); 80 81 text = name + ": " + message; 82 } 83 else 84 { 85 text = message; 77 text = player->getName() + ": " + message; 86 78 } 87 79
Note: See TracChangeset
for help on using the changeset viewer.