mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 07:02:12 +00:00
Compile without warnings in cygwin's gcc.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2403 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
300f84b8c1
commit
7e9852451c
3 changed files with 96 additions and 94 deletions
|
@ -819,7 +819,7 @@ qboolean SV_ReadPendingProxy(cluster_t *cluster, oproxy_t *pend)
|
|||
pend->flushing = true;
|
||||
return false;
|
||||
}
|
||||
len = s - pend->inbuffer + len;
|
||||
len = s - (char*)pend->inbuffer + len;
|
||||
if (len > pend->inbuffersize)
|
||||
return false; //still need the body
|
||||
|
||||
|
@ -913,6 +913,7 @@ qboolean SV_ReadPendingProxy(cluster_t *cluster, oproxy_t *pend)
|
|||
*e = '\0';
|
||||
colon = strchr(s, ':');
|
||||
if (*s)
|
||||
{
|
||||
if (!colon)
|
||||
{
|
||||
if (!strcmp(s, "QTV"))
|
||||
|
@ -999,10 +1000,10 @@ qboolean SV_ReadPendingProxy(cluster_t *cluster, oproxy_t *pend)
|
|||
if (qtv->streamid == atoi(colon))
|
||||
break;
|
||||
}
|
||||
// s = "QTVSV 1\n"
|
||||
// "PERROR: SOURCE command not yet implemented\n"
|
||||
// "\n";
|
||||
// Net_ProxySend(cluster, pend, s, strlen(s));
|
||||
// s = "QTVSV 1\n"
|
||||
// "PERROR: SOURCE command not yet implemented\n"
|
||||
// "\n";
|
||||
// Net_ProxySend(cluster, pend, s, strlen(s));
|
||||
}
|
||||
else if (!strcmp(s, "DEMO"))
|
||||
{ //starts a demo off the server... source does the same thing though...
|
||||
|
@ -1015,6 +1016,7 @@ qboolean SV_ReadPendingProxy(cluster_t *cluster, oproxy_t *pend)
|
|||
else
|
||||
printf("Unrecognised token in QTV connection request (%s)\n", s);
|
||||
}
|
||||
}
|
||||
s = e+1;
|
||||
}
|
||||
|
||||
|
|
|
@ -845,6 +845,7 @@ void WriteDeltaUsercmd (netmsg_t *m, const usercmd_t *from, usercmd_t *move);
|
|||
void SendClientCommand(sv_t *qtv, char *fmt, ...);
|
||||
void QTV_Run(sv_t *qtv);
|
||||
void QW_FreeViewer(cluster_t *cluster, viewer_t *viewer);
|
||||
void QW_SetMenu(viewer_t *v, int menunum);
|
||||
|
||||
char *Rcon_Command(cluster_t *cluster, sv_t *qtv, char *command, char *buffer, int sizeofbuffer, qboolean localcommand);
|
||||
char *COM_ParseToken (char *data, char *out, int outsize, const char *punctuation);
|
||||
|
|
|
@ -26,7 +26,6 @@ static const filename_t ConnectionlessSoundList[] = {{""}, {""}};
|
|||
|
||||
|
||||
void Menu_Enter(cluster_t *cluster, viewer_t *viewer, int buttonnum);
|
||||
void QW_SetMenu(viewer_t *v, int menunum);
|
||||
|
||||
#if defined(_WIN32) && !defined(__MINGW32_VERSION)
|
||||
int snprintf(char *buffer, int buffersize, char *format, ...)
|
||||
|
@ -207,7 +206,7 @@ void BuildServerData(sv_t *tv, netmsg_t *msg, qboolean mvd, int servercount, qbo
|
|||
if (mvd)
|
||||
WriteFloat(msg, 0);
|
||||
else
|
||||
WriteByte(msg, MAX_CLIENTS-1 | (spectatorflag?128:0));
|
||||
WriteByte(msg, (MAX_CLIENTS-1) | (spectatorflag?128:0));
|
||||
WriteString(msg, "FTEQTV Proxy");
|
||||
|
||||
|
||||
|
@ -1565,7 +1564,7 @@ void SendNQPlayerStates(cluster_t *cluster, sv_t *tv, viewer_t *v, netmsg_t *msg
|
|||
// send an update
|
||||
bits = 0;
|
||||
|
||||
if (tv->entity[i].updatetime == tv->oldpackettime)
|
||||
if (ent->updatetime == tv->oldpackettime)
|
||||
{
|
||||
for (i=0 ; i<3 ; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue