Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 6, 2011, 3:40:37 PM (13 years ago)
Author:
landauf
Message:

display chat messages without sender without name (currently used for gameplay messages)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/orxonox/ChatHistory.cc

    r8809 r8826  
    7878  {
    7979    /* --> a) look up the actual name of the sender */
    80     std::string text;
     80    std::string text = message;
    8181
    8282#ifndef CHATTEST
     
    8484    if (senderID != NETWORK_PEER_ID_UNKNOWN)
    8585    {
    86       /* if we can't find anything, use "unknown" as default */
    87       std::string name = "unknown";
    88 
    8986      PlayerInfo* player = PlayerManager::getInstance().getClient(senderID);
    9087      if (player)
    91         name = player->getName();
    92 
    93       text = name + ": " + message;
     88        text = player->getName() + ": " + message;
    9489    }
    95     else
    96       text = message;
    97 #else
    98     text = message;
    9990#endif
    10091
Note: See TracChangeset for help on using the changeset viewer.