don't create a new recorder when we already have one

this seems to fix the weird behaviour when changing maps
This commit is contained in:
Bill Currie 2010-01-13 06:49:28 +00:00 committed by Jeff Teunissen
parent bb6619d332
commit 8ac7a71e10
2 changed files with 4 additions and 3 deletions

View file

@ -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;

View file

@ -278,6 +278,7 @@ qtv_begin_f (sv_qtv_t *proxy)
qtv_new_f (proxy);
return;
}
if (!proxy->recorder)
proxy->recorder = SVR_AddUser (qtv_write, qtv_frame, 0, qtv_finish, 0,
proxy);
proxy->begun = 1;