summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2015-01-25 23:47:16 +0200
committerMikko Tiusanen <ams@daug.net>2015-01-25 23:47:16 +0200
commit56382169c394bc6a1e63a91fdd59b58ac3974986 (patch)
treeca7b9e762d4dfc7a11bc01e7dcbe072f465dc343 /src/game/g_buildable.c
parent67948a489d2a07b94b6d5a3eeb2b642146865a61 (diff)
Fixed compiler warnings in all game, cgame sources.
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 51946a0..bf353bf 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1091,7 +1091,7 @@ 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 range = { OVERMIND_ATTACK_RANGE, OVERMIND_ATTACK_RANGE, OVERMIND_ATTACK_RANGE };
int i;
if( self->spawned && ( self->health > 0 ) )
@@ -1633,11 +1633,6 @@ void AHive_Pain( gentity_t *self, gentity_t *attacker, int damage )
G_SetBuildableAnim( self, BANIM_PAIN1, qfalse );
}
-//==================================================================================
-
-/*
-
-
/*
================
G_Push
@@ -3800,7 +3795,7 @@ void G_FreeMarkedBuildables( gentity_t *deconner, char *readable, int rsize,
removalCounts[ bNum ]++;
if( nums )
- Q_strcat( nums, nsize, va( " %d", ent - g_entities ) );
+ Q_strcat( nums, nsize, va( " %d", (int)(ent - g_entities) ) );
G_FreeEntity( ent );
}
@@ -4147,7 +4142,7 @@ static void G_SetBuildableLinkState( qboolean link )
trap_UnlinkEntity( ent );
}
}
-
+/* Commented out as all of it's use cases are commented out as well.
static void G_SetBuildableMarkedLinkState( qboolean link )
{
int i;
@@ -4162,7 +4157,7 @@ static void G_SetBuildableMarkedLinkState( qboolean link )
trap_UnlinkEntity( ent );
}
}
-
+*/
/*
================
G_CanBuild