aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-15 03:19:43 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-15 03:19:43 +0000
commit532c1fa910630b094bc20d48df4587d9edc11b4d (patch)
tree9e7f3b8d8062d2228ed1b10cd40b10561f0e58a7 /code
parent157d8e32e0b38d0e901738dc652ca11337e85ea9 (diff)
downloadioquake3-aero-532c1fa910630b094bc20d48df4587d9edc11b4d.tar.gz
ioquake3-aero-532c1fa910630b094bc20d48df4587d9edc11b4d.zip
Removed more unused variables.
Partially fixes Bugzilla #3782. git-svn-id: svn://svn.icculus.org/quake3/trunk@1612 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/server/sv_init.c4
-rw-r--r--code/server/sv_net_chan.c4
-rw-r--r--code/server/sv_snapshot.c3
3 files changed, 3 insertions, 8 deletions
diff --git a/code/server/sv_init.c b/code/server/sv_init.c
index e68d782..bac7fa4 100644
--- a/code/server/sv_init.c
+++ b/code/server/sv_init.c
@@ -104,7 +104,7 @@ SV_SetConfigstring
===============
*/
void SV_SetConfigstring (int index, const char *val) {
- int len, i;
+ int i;
client_t *client;
if ( index < 0 || index >= MAX_CONFIGSTRINGS ) {
@@ -140,8 +140,6 @@ void SV_SetConfigstring (int index, const char *val) {
continue;
}
-
- len = strlen( val );
SV_SendConfigstring(client, index);
}
}
diff --git a/code/server/sv_net_chan.c b/code/server/sv_net_chan.c
index dd039ef..5b2f500 100644
--- a/code/server/sv_net_chan.c
+++ b/code/server/sv_net_chan.c
@@ -34,7 +34,7 @@ SV_Netchan_Encode
==============
*/
static void SV_Netchan_Encode( client_t *client, msg_t *msg ) {
- long reliableAcknowledge, i, index;
+ long i, index;
byte key, *string;
int srdc, sbit;
qboolean soob;
@@ -51,7 +51,7 @@ static void SV_Netchan_Encode( client_t *client, msg_t *msg ) {
msg->readcount = 0;
msg->oob = qfalse;
- reliableAcknowledge = MSG_ReadLong(msg);
+ /* reliableAcknowledge = */ MSG_ReadLong(msg);
msg->oob = soob;
msg->bit = sbit;
diff --git a/code/server/sv_snapshot.c b/code/server/sv_snapshot.c
index 2e0ad92..d84a189 100644
--- a/code/server/sv_snapshot.c
+++ b/code/server/sv_snapshot.c
@@ -298,7 +298,6 @@ static void SV_AddEntitiesVisibleFromPoint( vec3_t origin, clientSnapshot_t *fra
int l;
int clientarea, clientcluster;
int leafnum;
- int c_fullsend;
byte *clientpvs;
byte *bitvector;
@@ -318,8 +317,6 @@ static void SV_AddEntitiesVisibleFromPoint( vec3_t origin, clientSnapshot_t *fra
clientpvs = CM_ClusterPVS (clientcluster);
- c_fullsend = 0;
-
for ( e = 0 ; e < sv.num_entities ; e++ ) {
ent = SV_GentityNum(e);