Skip to content

Commit

Permalink
Fix invisible chat error messages (#7289)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumbeldor authored and SmallJoker committed May 1, 2018
1 parent 55bb193 commit 24b6bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game.cpp
Expand Up @@ -2761,8 +2761,8 @@ void Game::updateChat(f32 dtime, const v2u32 &screensize)
while (!chat_log_error_buf.empty()) {
std::wstring error_message = utf8_to_wide(chat_log_error_buf.get());
if (!g_settings->getBool("disable_escape_sequences")) {
error_message = L"\x1b(c@red)";
error_message.append(error_message).append(L"\x1b(c@white)");
error_message.insert(0, L"\x1b(c@red)");
error_message.append(L"\x1b(c@white)");
}
chat_backend->addMessage(L"", error_message);
}
Expand Down

0 comments on commit 24b6bd0

Please sign in to comment.