diff options
author | pecksin <pexin@protonmail.com> | 2021-03-23 01:17:18 -0400 |
---|---|---|
committer | pecksin <pexin@protonmail.com> | 2021-03-23 01:17:18 -0400 |
commit | c18be120855d4219d7e06ed674121eb7f6a93ea5 (patch) | |
tree | 5ea14e8bb18a22434b5776e2804a8820c6e9226f /src | |
parent | 1b39c96683f984b82432cb9f9417245680982b41 (diff) | |
download | minetest-c18be120855d4219d7e06ed674121eb7f6a93ea5.tar.gz minetest-c18be120855d4219d7e06ed674121eb7f6a93ea5.tar.bz2 minetest-c18be120855d4219d7e06ed674121eb7f6a93ea5.zip |
minor cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/chat.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/chat.cpp b/src/chat.cpp index b0223f8db..c58b6e7cb 100644 --- a/src/chat.cpp +++ b/src/chat.cpp @@ -53,7 +53,6 @@ ChatBuffer::ChatBuffer(u32 scrollback): colorval /= 256; redval = colorval % 256; // discard alpha, if included - //m_cache_chat_weblink_color = irr::video::SColor(255,150,150,255); m_cache_chat_weblink_color = irr::video::SColor(255,redval,greenval,blueval); } } @@ -423,7 +422,7 @@ u32 ChatBuffer::formatChatLine(const ChatLine& line, u32 cols, else { space_pos = http_pos - 1; - frag_length = http_pos; // - in_pos; + frag_length = http_pos; } if (space_pos != 0 && frag_length < remaining_in_input) @@ -434,7 +433,6 @@ u32 ChatBuffer::formatChatLine(const ChatLine& line, u32 cols, if(http_pos == 0) { temp_frag.meta = wide_to_utf8(temp_frag.text.getString()); - // FIXME: this is probably overkill to recolor the link text. temp_frag.text = EnrichedString(temp_frag.text.getString()); temp_frag.text.setDefaultColor(m_cache_chat_weblink_color); } |