summaryrefslogtreecommitdiff
path: root/source/sv_game.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-01-04 22:45:32 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-01-04 22:45:32 +0000
commitcfed1adf2730a07f31ccb7644f274ead21c31879 (patch)
treea24638d36c785264178203801f6945fec2ef5a9c /source/sv_game.c
parent0f73c3d00f54ed960cf01d0cfe30734cda26586c (diff)
Updated revision to 177.
Updated minor MVD protocol version to 2010. Do not wrap bprintf messages into mvd_multicast, use mvd_print instead. Locked `sv_mvd_wait' variable until things are sorted out.
Diffstat (limited to 'source/sv_game.c')
-rw-r--r--source/sv_game.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/sv_game.c b/source/sv_game.c
index 55c3a45..4cbad96 100644
--- a/source/sv_game.c
+++ b/source/sv_game.c
@@ -162,6 +162,10 @@ static void PF_bprintf( int level, const char *fmt, ... ) {
length = Q_vsnprintf( string, sizeof( string ), fmt, argptr );
va_end( argptr );
+ if( sv_mvd_enable->integer ) {
+ SV_MvdBroadcastPrint( level, string );
+ }
+
MSG_WriteByte( svc_print );
MSG_WriteByte( level );
MSG_WriteData( string, length + 1 );
@@ -181,9 +185,6 @@ static void PF_bprintf( int level, const char *fmt, ... ) {
SV_ClientAddMessage( client, MSG_RELIABLE );
}
}
- if( sv_mvd_enable->integer ) {
- SV_MvdMulticast( &sv.mvd.message, -1, mvd_multicast_all_r );
- }
SZ_Clear( &msg_write );
}