diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2011-08-07 23:40:03 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:13 +0000 |
commit | 7d331f075edd65eab5b0fce5d823f70abd5e95fb (patch) | |
tree | 8a8cf21cce429d4de1839268f3ab991a9c18785c /src/game/g_buildable.c | |
parent | cb1e78beeeae8ff8f78310cff3bc30e9b9dce8b8 (diff) |
* Silence some set-but-unused variable warnings. There are still more. Many others will be handled in the next upstream merge.
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 0955dd19..f0016765 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -932,12 +932,8 @@ Think function for Alien Overmind void AOvermind_Think( gentity_t *self ) { vec3_t range = { OVERMIND_ATTACK_RANGE, OVERMIND_ATTACK_RANGE, OVERMIND_ATTACK_RANGE }; - vec3_t mins, maxs; int i; - VectorAdd( self->s.origin, range, maxs ); - VectorSubtract( self->s.origin, range, mins ); - if( self->spawned && ( self->health > 0 ) ) { //do some damage @@ -947,7 +943,7 @@ void AOvermind_Think( gentity_t *self ) self->timestamp = level.time; G_SetBuildableAnim( self, BANIM_ATTACK1, qfalse ); } - + // just in case an egg finishes building after we tell overmind to stfu if( level.numAlienSpawns > 0 ) level.overmindMuted = qfalse; @@ -3370,7 +3366,6 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance qboolean invert; int contents; playerState_t *ps = &ent->client->ps; - int buildPoints; // Stop all buildables from interacting with traces G_SetBuildableLinkState( qfalse ); @@ -3395,7 +3390,6 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance reason = IBE_NORMAL; contents = trap_PointContents( entity_origin, -1 ); - buildPoints = BG_Buildable( buildable )->buildPoints; if( ( tempReason = G_SufficientBPAvailable( buildable, origin ) ) != IBE_NONE ) reason = tempReason; |