pos[i] = MSG_ReadCoord ();
S_StartSound (ent, channel, cl.sound_precache[sound_num], pos, volume/255.0, attenuation);
-}
+}
/*
==================
float time;
static float lastmsg;
int ret;
+ int c;
sizebuf_t old;
qbyte olddata[8192];
Host_Error ("CL_KeepaliveMessage: received a message");
break;
case 2:
- if (MSG_ReadByte() != svc_nop)
+ c = MSG_ReadByte();
+ if (c != svc_nop)
Host_Error ("CL_KeepaliveMessage: datagram wasn't a nop");
break;
}
int j = MSG_ReadFloat() * 255.0f;
if (i == 2)
{
- if (MSG_ReadFloat())
+ i = MSG_ReadFloat();
+ if (i)
new.effects |= EF_FULLBRIGHT;
}
if (j < 0)
int frags;
int connectTime;
qbyte playerNumber;
+ int c;
net_landriverlevel = testDriver;
if ((control & NETFLAG_LENGTH_MASK) != len)
break;
- if (MSG_ReadByte() != CCREP_PLAYER_INFO)
+ c = MSG_ReadByte();
+ if (c != CCREP_PLAYER_INFO)
Sys_Error("Unexpected repsonse to Player Info request\n");
playerNumber = MSG_ReadByte();
struct qsockaddr clientaddr;
int control;
int len;
+ int c;
char name[256];
char value[256];
if ((control & NETFLAG_LENGTH_MASK) != len)
goto Error;
- if (MSG_ReadByte() != CCREP_RULE_INFO)
+ c = MSG_ReadByte();
+ if (c != CCREP_RULE_INFO)
goto Error;
strcpy(name, MSG_ReadString());
int command;
int control;
int ret;
+ int c;
acceptsock = dfunc.CheckNewConnections();
if (acceptsock == -1)
if (strcmp(MSG_ReadString(), "QUAKE") != 0)
return NULL;
- if (MSG_ReadByte() != NET_PROTOCOL_VERSION)
+ c = MSG_ReadByte();
+ if (c != NET_PROTOCOL_VERSION)
{
SZ_Clear(&net_message);
// save space for the header, filled in later
struct qsockaddr readaddr;
struct qsockaddr myaddr;
int control;
+ int c;
dfunc.GetSocketAddr (dfunc.controlSock, &myaddr);
if (xmit)
if ((control & NETFLAG_LENGTH_MASK) != ret)
continue;
- if (MSG_ReadByte() != CCREP_SERVER_INFO)
+ c = MSG_ReadByte();
+ if (c != CCREP_SERVER_INFO)
continue;
dfunc.GetAddrFromName(MSG_ReadString(), &readaddr);
strcpy(hostcache[n].map, MSG_ReadString());
hostcache[n].users = MSG_ReadByte();
hostcache[n].maxusers = MSG_ReadByte();
- if (MSG_ReadByte() != NET_PROTOCOL_VERSION)
+ c = MSG_ReadByte();
+ if (c != NET_PROTOCOL_VERSION)
{
strcpy(hostcache[n].cname, hostcache[n].name);
hostcache[n].cname[14] = 0;