# HG changeset patch # User Adam Kaminski # Date 1641760665 18000 # Sun Jan 09 15:37:45 2022 -0500 # Node ID 1526df0bd1365455ef5c6692e2926a2407a6df7e # Parent 42ee0792b4ecb8c2ea8af23bd0671395ab2d37a7 Fixed: archived chat messages were drawn in the wrong color when the cursor blinked on. diff -r 42ee0792b4ec -r 1526df0bd136 src/chat.cpp --- a/src/chat.cpp Sun Jan 09 15:33:38 2022 -0500 +++ b/src/chat.cpp Sun Jan 09 15:37:45 2022 -0500 @@ -734,8 +734,16 @@ // [AK] Also blink the cursor between dark gray and white. if ( g_ulChatTicker >= C_BLINKRATE ) { - cursor.Insert( 0, g_ChatBuffer.IsInArchive() ? TEXTCOLOR_BLACK : TEXTCOLOR_DARKGRAY ); - cursor += TEXTCOLOR_GRAY; + if ( g_ChatBuffer.IsInArchive() ) + { + cursor.Insert( 0, TEXTCOLOR_BLACK ); + cursor += TEXTCOLOR_DARKGRAY; + } + else + { + cursor.Insert( 0, TEXTCOLOR_DARKGRAY ); + cursor += TEXTCOLOR_GRAY; + } } // Build the message that we will display to clients.