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/modules/overlays/hud/ChatOverlay.cc

    r8825 r8826  
    6969    void ChatOverlay::incomingChat(const std::string& message, unsigned int senderID)
    7070    {
    71         std::string text;
     71        std::string text = message;
    7272
    7373        if (senderID != NETWORK_PEER_ID_UNKNOWN)
    7474        {
    75             std::string name = "unknown";
    76 
    7775            PlayerInfo* player = PlayerManager::getInstance().getClient(senderID);
    7876            if (player)
    79                 name = player->getName();
    80 
    81             text = name + ": " + message;
    82         }
    83         else
    84         {
    85             text = message;
     77                text = player->getName() + ": " + message;
    8678        }
    8779
Note: See TracChangeset for help on using the changeset viewer.