From be82bffd844264d75c3bdfc404da2560a7683b11 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 17 Sep 2006 02:35:23 +0000 Subject: [PATCH] Yeah, my coding sucks. I know, I know... git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2382 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- fteqtv/forward.c | 2 +- fteqtv/parse.c | 1 - fteqtv/qtv.h | 6 +++++- fteqtv/qw.c | 2 -- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fteqtv/forward.c b/fteqtv/forward.c index 2cce0005e..cd1b36e35 100644 --- a/fteqtv/forward.c +++ b/fteqtv/forward.c @@ -266,7 +266,7 @@ void Net_SendConnectionMVD(sv_t *qtv, oproxy_t *prox) prox->flushing = false; - BuildServerData(qtv, &msg, true, false, 0); + BuildServerData(qtv, &msg, true, 0); Prox_SendMessage(qtv->cluster, prox, msg.data, msg.cursize, dem_read, (unsigned)-1); msg.cursize = 0; diff --git a/fteqtv/parse.c b/fteqtv/parse.c index 3211e6d68..c08050555 100644 --- a/fteqtv/parse.c +++ b/fteqtv/parse.c @@ -63,7 +63,6 @@ unsigned int BigLong(unsigned int val) unsigned int i; unsigned char c[4]; } v; - unsigned char s; v.i = val; return (v.c[0]<<24) | (v.c[1] << 16) | (v.c[2] << 8) | (v.c[3] << 0); diff --git a/fteqtv/qtv.h b/fteqtv/qtv.h index ccc3dccd8..1d3f86140 100644 --- a/fteqtv/qtv.h +++ b/fteqtv/qtv.h @@ -576,6 +576,9 @@ unsigned int ReadLong(netmsg_t *b); float ReadFloat(netmsg_t *b); void ReadString(netmsg_t *b, char *string, int maxlen); +unsigned int SwapLong(unsigned int val); +unsigned int BigLong(unsigned int val); + @@ -769,7 +772,7 @@ int Netchan_IsLocal (netadr_t adr); void NET_SendPacket(cluster_t *cluster, SOCKET sock, int length, char *data, netadr_t adr); qboolean Net_CompareAddress(netadr_t *s1, netadr_t *s2, int qp1, int qp2); qboolean Netchan_Process (netchan_t *chan, netmsg_t *msg); -qboolean NQNetChan_Process(cluster_t *cluster, netchan_t *chan, netmsg_t *msg); +qboolean NQNetchan_Process(cluster_t *cluster, netchan_t *chan, netmsg_t *msg); void Netchan_Transmit (cluster_t *cluster, netchan_t *chan, int length, const unsigned char *data); int SendList(sv_t *qtv, int first, const filename_t *list, int svc, netmsg_t *msg); int Prespawn(sv_t *qtv, int curmsgsize, netmsg_t *msg, int bufnum, int thisplayer); @@ -788,6 +791,7 @@ void Netchan_OutOfBand (cluster_t *cluster, SOCKET sock, netadr_t adr, int lengt 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); 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); diff --git a/fteqtv/qw.c b/fteqtv/qw.c index dfb15e81e..e0092f91e 100644 --- a/fteqtv/qw.c +++ b/fteqtv/qw.c @@ -1339,8 +1339,6 @@ void SendNQPlayerStates(cluster_t *cluster, sv_t *tv, viewer_t *v, netmsg_t *msg int e; int i; usercmd_t to; - unsigned short flags; - short interp; float lerp; int bits; unsigned short org[3];