Commit MetaInfo

Revisionfea072d140bb90f91c7597b51158f6069d84a759 (tree)
Time2022-01-10 06:24:08
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: chat messages sent by the server weren't colorized properly.

Change Summary

Incremental Difference

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 @@
13631363
13641364 // Send the server's chat string out to clients, and print it in the console.
13651365 if ( NETWORK_GetState( ) == NETSTATE_SERVER )
1366+ {
1367+ // [AK] Make sure that color codes can appear in the message.
1368+ V_ColorizeString( ChatString );
13661369 SERVER_SendChatMessage( MAXPLAYERS, CHATMODE_GLOBAL, ChatString.GetChars( ));
1370+ }
13671371 else
1372+ {
13681373 // We typed out our message in the console or with a macro. Go ahead and send the message now.
13691374 chat_SendMessage( CHATMODE_GLOBAL, ChatString.GetChars( ));
1375+ }
13701376 }
13711377 }
13721378
@@ -1572,10 +1578,16 @@
15721578
15731579 // Send the server's chat string out to clients, and print it in the console.
15741580 if ( NETWORK_GetState( ) == NETSTATE_SERVER )
1581+ {
1582+ // [AK] Make sure that color codes can appear in the message.
1583+ V_ColorizeString( ChatString );
15751584 SERVER_SendChatMessage( MAXPLAYERS, CHATMODE_PRIVATE_SEND, ChatString.GetChars( ), g_ulChatPlayer );
1585+ }
15761586 else
1587+ {
15771588 // We typed out our message in the console or with a macro. Go ahead and send the message now.
15781589 chat_SendMessage( CHATMODE_PRIVATE_SEND, ChatString.GetChars( ) );
1590+ }
15791591
15801592 return;
15811593 }
Show on old repository browser