diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-10-17 08:19:49 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-10-17 08:19:49 +0000 |
commit | 24ea5c3d91c6aec73b8ef9633bf5a12146055c42 (patch) | |
tree | e3ef9d167548c8443082336e54a03d28b3502773 /source/mvd_parse.c | |
parent | 58c8e2e0377eddcae7f44d30b78578fbedf0eaa7 (diff) |
Added `mvd_stats_score' variable.
Do not change gamedir when parsing MVD stream.
Added `--replace' argument to `mvdplay' command.
Typing `demo <something.mvd2>' in client console will replace
any currenly playing MVD with the new demo, just like it happens
with regular demos.
Export number of active MVD channels into server info.
Updated documentation.
Diffstat (limited to 'source/mvd_parse.c')
-rw-r--r-- | source/mvd_parse.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/mvd_parse.c b/source/mvd_parse.c index bc8c2c1..0045bc9 100644 --- a/source/mvd_parse.c +++ b/source/mvd_parse.c @@ -992,14 +992,13 @@ static void MVD_ParseServerData( mvd_t *mvd, int extrabits ) { mvd->clientNum = MSG_ReadShort(); mvd->flags = extrabits; +#if 0 // change gamedir unless playing a demo - /*if( !mvd->demoplayback )*/ { - Cvar_UserSet( "game", mvd->gamedir ); - if( FS_NeedRestart() ) { - FS_Restart(); - } -// SV_InfoSet( "gamedir", "gtv" ); - } + Cvar_UserSet( "game", mvd->gamedir ); + if( FS_NeedRestart() ) { + FS_Restart(); + } +#endif // parse configstrings while( 1 ) { |