From 8ac7a71e104a7eeaabac3bbb3eb910a87665620d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 13 Jan 2010 06:49:28 +0000 Subject: [PATCH] don't create a new recorder when we already have one this seems to fix the weird behaviour when changing maps --- qtv/source/server.c | 2 +- qw/source/sv_qtv.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/qtv/source/server.c b/qtv/source/server.c index 745f36658..79ac58bfd 100644 --- a/qtv/source/server.c +++ b/qtv/source/server.c @@ -201,7 +201,7 @@ save_signon (server_t *sv, qmsg_t *msg, int start) if (!size) return; - Sys_DPrintf ("save_signon: %d\n", sv->num_signon_buffers); + if (sv->num_signon_buffers >= MAX_SIGNON_BUFFERS) Sys_Error ("too many signon buffers: %d\n", sv->num_signon_buffers); sv->signon_buffer_size[sv->num_signon_buffers] = size; diff --git a/qw/source/sv_qtv.c b/qw/source/sv_qtv.c index 70c132cd0..3a292e133 100644 --- a/qw/source/sv_qtv.c +++ b/qw/source/sv_qtv.c @@ -278,8 +278,9 @@ qtv_begin_f (sv_qtv_t *proxy) qtv_new_f (proxy); return; } - proxy->recorder = SVR_AddUser (qtv_write, qtv_frame, 0, qtv_finish, 0, - proxy); + if (!proxy->recorder) + proxy->recorder = SVR_AddUser (qtv_write, qtv_frame, 0, qtv_finish, 0, + proxy); proxy->begun = 1; }