summaryrefslogtreecommitdiff
path: root/source/mvd_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-02-14 18:12:41 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-02-14 18:12:41 +0000
commita5afaf65af8ef50d1ce8bbd9e2133239013c26f7 (patch)
tree699e5d4a3402ef403d98697f8b1e423036783c10 /source/mvd_parse.c
parent5fb93fcf0ba8877e8bda060370d2c722494971f5 (diff)
Stop client demo recording when `changing' command is received.
Prevent cl.time calculations from overflowing on high server frames.
Diffstat (limited to 'source/mvd_parse.c')
-rw-r--r--source/mvd_parse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/mvd_parse.c b/source/mvd_parse.c
index 90ef3df..a9a0fc6 100644
--- a/source/mvd_parse.c
+++ b/source/mvd_parse.c
@@ -649,6 +649,14 @@ static void MVD_ParseConfigstring( mvd_t *mvd ) {
if( p ) {
*p = 0;
}
+ LIST_FOR_EACH( udpClient_t, client, &mvd->udpClients, entry ) {
+ if( client->cl->state < cs_spawned ) {
+ continue;
+ }
+ if( client->target == player && client->layout_type == LAYOUT_FOLLOW ) {
+ client->layout_time = 0;
+ }
+ }
} else if( index >= CS_GENERAL ) {
// reset unicast versions of this string
for( i = 0; i < mvd->maxclients; i++ ) {