mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-13 07:47:45 +00:00
Acting as a Q3 server is now more robust.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3389 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
fb190d430c
commit
8f11f5f73b
1 changed files with 9 additions and 1 deletions
|
@ -315,7 +315,12 @@ cvar_t *q3cvlist[MAX_VMQ3_CVARS];
|
||||||
int VMQ3_Cvar_Register(vmcvar_t *v, char *name, char *defval, int flags)
|
int VMQ3_Cvar_Register(vmcvar_t *v, char *name, char *defval, int flags)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
cvar_t *c = Cvar_Get(name, defval, 0, "Q3VM cvars");
|
int fteflags = 0;
|
||||||
|
cvar_t *c;
|
||||||
|
|
||||||
|
fteflags = flags & (CVAR_ARCHIVE | CVAR_USERINFO | CVAR_SERVERINFO);
|
||||||
|
|
||||||
|
c = Cvar_Get(name, defval, fteflags, "Q3VM cvars");
|
||||||
if (!c) //command name, etc
|
if (!c) //command name, etc
|
||||||
return 0;
|
return 0;
|
||||||
for (i = 0; i < MAX_VMQ3_CVARS; i++)
|
for (i = 0; i < MAX_VMQ3_CVARS; i++)
|
||||||
|
@ -763,6 +768,9 @@ void Netchan_TransmitQ3( netchan_t *chan, int length, const qbyte *data )
|
||||||
Con_Printf( "%s: unsent fragments\n", NET_AdrToString( adr, sizeof(adr), chan->remote_address ) );
|
Con_Printf( "%s: unsent fragments\n", NET_AdrToString( adr, sizeof(adr), chan->remote_address ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/*drop the outgoing packet if we fragmented*/
|
||||||
|
/*failure to do this results in the wrong encoding due to the outgoing sequence*/
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// See if this message is too large and should be fragmented
|
// See if this message is too large and should be fragmented
|
||||||
|
|
Loading…
Reference in a new issue