Changeset 8826 for code/branches/output/src/orxonox/ChatInputHandler.cc
- Timestamp:
- Aug 6, 2011, 3:40:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/orxonox/ChatInputHandler.cc
r8809 r8826 217 217 { 218 218 /* look up the actual name of the sender */ 219 std::string text, name = "unknown"; 219 std::string text = message; 220 std::string name = ""; 220 221 221 222 /* setup player name info */ … … 224 225 PlayerInfo* player = PlayerManager::getInstance().getClient(senderID); 225 226 if (player) 227 { 226 228 name = player->getName(); 227 } 228 229 /* assemble the text */ 230 text = name + ": " + message; 229 text = name + ": " + message; 230 } 231 } 231 232 232 233 /* create item */ … … 234 235 235 236 /* setup colors */ 236 sub_setcolor( toadd, name ); 237 if (name != "") 238 sub_setcolor( toadd, name ); 237 239 238 240 /* now add */
Note: See TracChangeset
for help on using the changeset viewer.