mirror of https://github.com/FWGS/hlsdk-xash3d
Replace svc_print by ClientPrint
This commit is contained in:
parent
48201dfcc3
commit
ab875f9d90
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue