Commit MetaInfo

Revisionce769866bb7eba6c2d840700ced20a815267a984 (tree)
Time2022-01-13 06:14:23
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed: RCON clients still printed two copies of the chat message that they sent.

Change Summary

Incremental Difference

diff -r b3e3900eec6d -r ce769866bb7e src/sv_main.cpp
--- a/src/sv_main.cpp Wed Jan 12 20:23:18 2022 -0500
+++ b/src/sv_main.cpp Wed Jan 12 16:14:23 2022 -0500
@@ -1257,6 +1257,8 @@
12571257 message.Format( "<From %s> ", players[ulPlayer].userinfo.GetName() );
12581258 }
12591259
1260+ // [AK] Don't print the same message twice for the current RCON client.
1261+ CONSOLE_ShouldPrintToRCONPlayer( false );
12601262 message.AppendFormat( "* %s%s", ulPlayer != MAXPLAYERS ? players[ulPlayer].userinfo.GetName() : "<Server>", pszString );
12611263 Printf( "%s\n", message.GetChars() );
12621264 }
@@ -1271,6 +1273,8 @@
12711273 }
12721274 else
12731275 {
1276+ // [AK] Don't print the same message twice for the current RCON client.
1277+ CONSOLE_ShouldPrintToRCONPlayer( false );
12741278 Printf( "%s: %s\n", ulPlayer != MAXPLAYERS ? players[ulPlayer].userinfo.GetName() : "<Server>", pszString );
12751279 }
12761280 }
Show on old repository browser