Commit MetaInfo

Revision7f271c747a7c47ad01386c9651a56546ca02b9ef (tree)
Time2022-01-10 05:37:45
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: archived chat messages were drawn in the wrong color when the cursor blinked on.

Change Summary

Incremental Difference

diff -r ae023be164fa -r 7f271c747a7c src/chat.cpp
--- a/src/chat.cpp Sun Jan 09 12:58:18 2022 -0500
+++ b/src/chat.cpp Sun Jan 09 15:37:45 2022 -0500
@@ -734,8 +734,16 @@
734734 // [AK] Also blink the cursor between dark gray and white.
735735 if ( g_ulChatTicker >= C_BLINKRATE )
736736 {
737- cursor.Insert( 0, g_ChatBuffer.IsInArchive() ? TEXTCOLOR_BLACK : TEXTCOLOR_DARKGRAY );
738- cursor += TEXTCOLOR_GRAY;
737+ if ( g_ChatBuffer.IsInArchive() )
738+ {
739+ cursor.Insert( 0, TEXTCOLOR_BLACK );
740+ cursor += TEXTCOLOR_DARKGRAY;
741+ }
742+ else
743+ {
744+ cursor.Insert( 0, TEXTCOLOR_DARKGRAY );
745+ cursor += TEXTCOLOR_GRAY;
746+ }
739747 }
740748
741749 // Build the message that we will display to clients.
Show on old repository browser