diff options
author | Andrey Nazarov <skuller@skuller.net> | 2010-02-22 15:46:13 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2010-02-22 15:46:13 +0000 |
commit | 2e4c6c91d01b83a6a9147e8f5273a84d81b3dd72 (patch) | |
tree | abe6345e149c3e02fc29717f97fd14042ffce689 | |
parent | c33264594d0c21b3c5dbfa9d24ef69786f3c8767 (diff) |
Update MVD channels layout when map changes and/or total number of players changes.
-rw-r--r-- | source/mvd_game.c | 1 | ||||
-rw-r--r-- | source/mvd_parse.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/mvd_game.c b/source/mvd_game.c index 61f422f..40f6924 100644 --- a/source/mvd_game.c +++ b/source/mvd_game.c @@ -1636,6 +1636,7 @@ update: if( numplayers != mvd_numplayers ) { MVD_InfoSet( "mvd_players", va( "%d", numplayers ) ); mvd_numplayers = numplayers; + mvd_dirty = qtrue; // update layouts next frame } } diff --git a/source/mvd_parse.c b/source/mvd_parse.c index 854ace2..8869e1c 100644 --- a/source/mvd_parse.c +++ b/source/mvd_parse.c @@ -940,6 +940,8 @@ static void MVD_ChangeLevel( mvd_t *mvd ) { mvd->intermission = qfalse; + mvd_dirty = qtrue; + SV_SendAsyncPackets(); } @@ -1080,8 +1082,6 @@ static void MVD_ParseServerData( mvd_t *mvd, int extrabits ) { } List_Append( &cur->entry, &mvd->entry ); mvd->state = MVD_WAITING; - - mvd_dirty = qtrue; } // case all UDP clients to reconnect |