Remove hex symbols in overlay chat window.

This commit is contained in:
Mr_Goldberg 2021-04-02 23:40:54 -04:00
parent 44305a0068
commit 8a5e49251c
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278
1 changed files with 2 additions and 2 deletions

View File

@ -698,7 +698,7 @@ void Steam_Overlay::Callback(Common_Message *msg)
{
Steam_Messages const& steam_message = msg->steam_messages();
// Change color to cyan for friend
friend_info->second.chat_history.append("\x1""00FFFFFF", 9).append(steam_message.message()).append("\n", 1);
friend_info->second.chat_history.append(steam_message.message()).append("\n", 1);
if (!(friend_info->second.window_state & window_state_show))
{
friend_info->second.window_state |= window_state_need_attention;
@ -758,7 +758,7 @@ void Steam_Overlay::RunCallbacks()
msg.set_dest_id(friend_id);
network->sendTo(&msg, true);
friend_info->second.chat_history.append("\x1""00FF00FF", 9).append(input).append("\n", 1);
friend_info->second.chat_history.append(input).append("\n", 1);
}
*input = 0; // Reset the input field
friend_info->second.window_state &= ~window_state_send_message;