diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-03-30 22:50:12 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-03-30 22:50:12 +0000 |
commit | 25622e67c36582bfc7b10756ea5808a247b69a8a (patch) | |
tree | b5e86156ecc5cfa0f9dcb3b746074b05388063ad /source/mvd_client.c | |
parent | 599a6aba5619bea100e45b31483148d232229f91 (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_client.c')
-rw-r--r-- | source/mvd_client.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/mvd_client.c b/source/mvd_client.c index 806f667..edcb826 100644 --- a/source/mvd_client.c +++ b/source/mvd_client.c @@ -806,10 +806,18 @@ mvd_t *MVD_SetChannel( int arg ) { return NULL; } - id = atoi( s ); - LIST_FOR_EACH( mvd_t, mvd, &mvd_channels, entry ) { - if( mvd->id == id ) { - return mvd; + if( COM_IsNumeric( s ) ) { + id = atoi( s ); + LIST_FOR_EACH( mvd_t, mvd, &mvd_channels, entry ) { + if( mvd->id == id ) { + return mvd; + } + } + } else { + LIST_FOR_EACH( mvd_t, mvd, &mvd_channels, entry ) { + if( !strcmp( mvd->name, s ) ) { + return mvd; + } } } |