summaryrefslogtreecommitdiff
path: root/source/mvd_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-03-30 22:50:12 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-03-30 22:50:12 +0000
commit25622e67c36582bfc7b10756ea5808a247b69a8a (patch)
treeb5e86156ecc5cfa0f9dcb3b746074b05388063ad /source/mvd_parse.c
parent599a6aba5619bea100e45b31483148d232229f91 (diff)
Added UF_MUTE_MISC flag and corresponding MVD menu entry.
Avoid spamming MVD channels with broadcasts when client is dropped. Allow referencing MVD channels by name along with numeric ID. When spectator enters a MVD channel for the first time, start following the most followed player by default. Changed default GL driver to `libGL.so.1' on Unix.
Diffstat (limited to 'source/mvd_parse.c')
-rw-r--r--source/mvd_parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/mvd_parse.c b/source/mvd_parse.c
index b968539..946f54e 100644
--- a/source/mvd_parse.c
+++ b/source/mvd_parse.c
@@ -397,7 +397,7 @@ static void MVD_UnicastPrint( mvd_t *mvd, qboolean reliable, mvd_player_t *playe
if( level < cl->messagelevel ) {
continue;
}
- if( level == PRINT_CHAT && ( client->uf & UF_NOGAMECHAT ) ) {
+ if( level == PRINT_CHAT && ( client->uf & UF_MUTE_PLAYERS ) ) {
continue;
}
target = client->target ? client->target : mvd->dummy;
@@ -695,7 +695,8 @@ static void MVD_ParsePrint( mvd_t *mvd ) {
int level = MSG_ReadByte();
char *string = MSG_ReadString();
- MVD_BroadcastPrintf( mvd, level, UF_NOGAMECHAT, "%s", string );
+ MVD_BroadcastPrintf( mvd, level, level == PRINT_CHAT ?
+ UF_MUTE_PLAYERS : 0, "%s", string );
}
/*