mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
The server can now stream an MVD to multiple destinations at once. mvdrecord does not stop the old demo from recording. Please note, this hasn't been exaustivly tested.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@619 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1719ea7dc6
commit
d217414289
3 changed files with 518 additions and 396 deletions
|
@ -542,11 +542,6 @@ typedef struct {
|
|||
|
||||
typedef struct
|
||||
{
|
||||
FILE *file;
|
||||
int tcpsocket;
|
||||
int writedest; //doesn't bother if it's not valid demo_both is safe
|
||||
|
||||
|
||||
demobuf_t *dbuf;
|
||||
dbuffer_t dbuffer;
|
||||
sizebuf_t datagram;
|
||||
|
@ -564,13 +559,11 @@ typedef struct
|
|||
int lastwritten;
|
||||
demo_frame_t frames[DEMO_FRAMES];
|
||||
demoinfo_t info[MAX_CLIENTS];
|
||||
int size;
|
||||
qboolean disk;
|
||||
void *dest;
|
||||
qbyte *mfile;
|
||||
qbyte buffer[20*MAX_QWMSGLEN];
|
||||
int bufsize;
|
||||
int forceFrame;
|
||||
|
||||
struct mvddest_s *dest;
|
||||
} demo_t;
|
||||
|
||||
|
||||
|
@ -655,10 +648,6 @@ typedef struct
|
|||
int language; //the server operators language
|
||||
|
||||
levelcache_t *levcache;
|
||||
|
||||
//mvd demo stuff
|
||||
qbyte *demomem;
|
||||
int demomemsize;
|
||||
} server_static_t;
|
||||
|
||||
//=============================================================================
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1768,9 +1768,6 @@ void SV_SendMVDMessage(void)
|
|||
|
||||
demo.parsecount++;
|
||||
MVDSetMsgBuf(demo.dbuf,&demo.frames[demo.parsecount&DEMO_FRAMES_MASK].buf);
|
||||
|
||||
if (sv_demoMaxSize.value && demo.size > sv_demoMaxSize.value*1024)
|
||||
SV_MVDStop(1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue