summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-07-29 12:27:00 +0000
committerTim Angus <tim@ngus.net>2013-01-10 22:36:34 +0000
commite7c06719510940898e1f7f8215f4137202611308 (patch)
tree0aec0bf91daa568d8cb4a1c412037ca26b2f92a6 /src/server
parent76544bcec46127587d183a90e5ff817a71e1f139 (diff)
Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings
Diffstat (limited to 'src/server')
-rw-r--r--src/server/sv_client.c1
-rw-r--r--src/server/sv_world.c5
2 files changed, 1 insertions, 5 deletions
diff --git a/src/server/sv_client.c b/src/server/sv_client.c
index 25bf69f9..094ed98f 100644
--- a/src/server/sv_client.c
+++ b/src/server/sv_client.c
@@ -962,7 +962,6 @@ static void SV_VerifyPaks_f( client_t *cl ) {
//
if ( sv_pure->integer != 0 ) {
- bGood = qtrue;
nChkSum1 = nChkSum2 = 0;
// we run the game, so determine which cgame and ui the client "should" be running
bGood = (FS_FileIsInPAK("vm/cgame.qvm", &nChkSum1) == 1);
diff --git a/src/server/sv_world.c b/src/server/sv_world.c
index 667c9268..ce4230d7 100644
--- a/src/server/sv_world.c
+++ b/src/server/sv_world.c
@@ -383,9 +383,6 @@ SV_AreaEntities_r
static void SV_AreaEntities_r( worldSector_t *node, areaParms_t *ap ) {
svEntity_t *check, *next;
sharedEntity_t *gcheck;
- int count;
-
- count = 0;
for ( check = node->entities ; check ; check = next ) {
next = check->nextEntityInWorldSector;
@@ -681,7 +678,7 @@ int SV_PointContents( const vec3_t p, int passEntityNum ) {
angles = vec3_origin; // boxes don't rotate
}
- c2 = CM_TransformedPointContents (p, clipHandle, hit->s.origin, hit->s.angles);
+ c2 = CM_TransformedPointContents (p, clipHandle, hit->s.origin, angles);
contents |= c2;
}