|
|
|
@ -181,20 +181,20 @@ int CHudTextMessage::MsgFunc_TextMsg( const char *pszName, int iSize, void *pbuf
@@ -181,20 +181,20 @@ int CHudTextMessage::MsgFunc_TextMsg( const char *pszName, int iSize, void *pbuf
|
|
|
|
|
switch( msg_dest ) |
|
|
|
|
{ |
|
|
|
|
case HUD_PRINTCENTER: |
|
|
|
|
snprintf( psz, MSG_BUF_SIZE, szBuf[0], szBuf[1], szBuf[2], szBuf[3], szBuf[4] ); |
|
|
|
|
_snprintf( psz, MSG_BUF_SIZE, szBuf[0], szBuf[1], szBuf[2], szBuf[3], szBuf[4] ); |
|
|
|
|
CenterPrint( ConvertCRtoNL( psz ) ); |
|
|
|
|
break; |
|
|
|
|
case HUD_PRINTNOTIFY: |
|
|
|
|
psz[0] = 1; // mark this message to go into the notify buffer
|
|
|
|
|
snprintf( psz + 1, MSG_BUF_SIZE - 1, szBuf[0], szBuf[1], szBuf[2], szBuf[3], szBuf[4] ); |
|
|
|
|
_snprintf( psz + 1, MSG_BUF_SIZE - 1, szBuf[0], szBuf[1], szBuf[2], szBuf[3], szBuf[4] ); |
|
|
|
|
ConsolePrint( ConvertCRtoNL( psz ) ); |
|
|
|
|
break; |
|
|
|
|
case HUD_PRINTTALK: |
|
|
|
|
snprintf( psz, MSG_BUF_SIZE, szBuf[0], szBuf[1], szBuf[2], szBuf[3], szBuf[4] ); |
|
|
|
|
_snprintf( psz, MSG_BUF_SIZE, szBuf[0], szBuf[1], szBuf[2], szBuf[3], szBuf[4] ); |
|
|
|
|
gHUD.m_SayText.SayTextPrint( ConvertCRtoNL( psz ), MSG_BUF_SIZE ); |
|
|
|
|
break; |
|
|
|
|
case HUD_PRINTCONSOLE: |
|
|
|
|
snprintf( psz, MSG_BUF_SIZE, szBuf[0], szBuf[1], szBuf[2], szBuf[3], szBuf[4] ); |
|
|
|
|
_snprintf( psz, MSG_BUF_SIZE, szBuf[0], szBuf[1], szBuf[2], szBuf[3], szBuf[4] ); |
|
|
|
|
ConsolePrint( ConvertCRtoNL( psz ) ); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|