# HG changeset patch # User Adam Kaminski # Date 1641763448 18000 # Sun Jan 09 16:24:08 2022 -0500 # Node ID fea072d140bb90f91c7597b51158f6069d84a759 # Parent 7f271c747a7c47ad01386c9651a56546ca02b9ef Fixed: chat messages sent by the server weren't colorized properly. diff -r 7f271c747a7c -r fea072d140bb src/chat.cpp --- a/src/chat.cpp Sun Jan 09 15:37:45 2022 -0500 +++ b/src/chat.cpp Sun Jan 09 16:24:08 2022 -0500 @@ -1363,10 +1363,16 @@ // Send the server's chat string out to clients, and print it in the console. if ( NETWORK_GetState( ) == NETSTATE_SERVER ) + { + // [AK] Make sure that color codes can appear in the message. + V_ColorizeString( ChatString ); SERVER_SendChatMessage( MAXPLAYERS, CHATMODE_GLOBAL, ChatString.GetChars( )); + } else + { // We typed out our message in the console or with a macro. Go ahead and send the message now. chat_SendMessage( CHATMODE_GLOBAL, ChatString.GetChars( )); + } } } @@ -1572,10 +1578,16 @@ // Send the server's chat string out to clients, and print it in the console. if ( NETWORK_GetState( ) == NETSTATE_SERVER ) + { + // [AK] Make sure that color codes can appear in the message. + V_ColorizeString( ChatString ); SERVER_SendChatMessage( MAXPLAYERS, CHATMODE_PRIVATE_SEND, ChatString.GetChars( ), g_ulChatPlayer ); + } else + { // We typed out our message in the console or with a macro. Go ahead and send the message now. chat_SendMessage( CHATMODE_PRIVATE_SEND, ChatString.GetChars( ) ); + } return; }