Replace svc_print by ClientPrint

This commit is contained in:
mittorn 2018-05-03 15:11:17 +00:00
parent 48201dfcc3
commit ab875f9d90
2 changed files with 2 additions and 9 deletions

View File

@ -139,11 +139,7 @@ void UTIL_CoopPrintMessage( const char *format, ... )
int len = vsnprintf( string, 256, format, argptr );
va_end( argptr );
string[len] = 0;
MESSAGE_BEGIN( MSG_ALL, 8, NULL ); // svc_print
WRITE_BYTE( 3 ); // PRINT_CHAT
WRITE_STRING( string );
MESSAGE_END();
UTIL_ClientPrintAll( HUD_PRINTCONSOLE, string );
}

View File

@ -192,10 +192,7 @@ void Ent_ClientPrintf( edict_t *player, const char *format, ... )
va_end( argptr );
string[len] = 0;
MESSAGE_BEGIN( MSG_ONE, 8, g_vecZero, player ); // svc_print
WRITE_BYTE( 0 ); // PRINT_LOW
WRITE_STRING( string );
MESSAGE_END();
ClientPrint( &player->v, HUD_PRINTCONSOLE, string );
}