Permalink
Browse files

added printing of Observer/Referee messages to the console and log file

git-svn-id: http://ghostplusplus.googlecode.com/svn/trunk@410 a7494f72-a4b0-11dd-a887-7ffe1a420f8d
  • Loading branch information...
1 parent dbb9984 commit 7824c19ad92fc6ad932f38fdaa266a6c1f86f302 hogantp committed Apr 4, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 ghost/game_base.cpp
View
6 ghost/game_base.cpp
@@ -2808,6 +2808,12 @@ void CBaseGame :: EventPlayerChatToHost( CGamePlayer *player, CIncomingChatPlaye
if( m_MuteAll )
Relay = false;
}
+ else if( ExtraFlags[0] == 2 )
+ {
+ // this is an ingame [Obs/Ref] message, print it to the console
+
+ CONSOLE_Print( "[GAME: " + m_GameName + "] (" + MinString + ":" + SecString + ") [Obs/Ref] [" + player->GetName( ) + "]: " + chatPlayer->GetMessage( ) );
+ }
if( Relay )
{

0 comments on commit 7824c19

Please sign in to comment.