Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 6, 2011, 3:40:37 PM (14 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/ChatInputHandler.cc

    r8809 r8826  
    217217  {
    218218    /* look up the actual name of the sender */
    219     std::string text, name = "unknown";
     219    std::string text = message;
     220    std::string name = "";
    220221
    221222    /* setup player name info */
     
    224225       PlayerInfo* player = PlayerManager::getInstance().getClient(senderID);
    225226       if (player)
     227       {
    226228         name = player->getName();
    227     }
    228 
    229     /* assemble the text */
    230     text = name + ": " + message;
     229         text = name + ": " + message;
     230       }
     231    }
    231232
    232233    /* create item */
     
    234235
    235236    /* setup colors */
    236     sub_setcolor( toadd, name );
     237    if (name != "")
     238      sub_setcolor( toadd, name );
    237239
    238240    /* now add */
Note: See TracChangeset for help on using the changeset viewer.