summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:16 +0200
commitc596670999d843b430df0c4fe0eeabd148614638 (patch)
tree6290cc624bbbeaa50e2a3c3d7bc705721867e971 /src/game/g_weapon.c
parenta989cd97673eb20dbd9a2fed5723832d5cd39512 (diff)
remove a bunch of unused variables and some no-op code
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r--src/game/g_weapon.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index ea4e290..7d3449e 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -442,9 +442,9 @@ LOCKBLOB
void lockBlobLauncherFire( gentity_t *ent )
{
- gentity_t *m;
+// gentity_t *m =
- m = fire_lockblob( ent, muzzle, forward );
+ fire_lockblob( ent, muzzle, forward );
// VectorAdd( m->s.pos.trDelta, ent->client->ps.velocity, m->s.pos.trDelta ); // "real" physics
}
@@ -459,9 +459,9 @@ HIVE
void hiveFire( gentity_t *ent )
{
- gentity_t *m;
+// gentity_t *m =
- m = fire_hive( ent, muzzle, forward );
+ fire_hive( ent, muzzle, forward );
// VectorAdd( m->s.pos.trDelta, ent->client->ps.velocity, m->s.pos.trDelta ); // "real" physics
}
@@ -476,9 +476,9 @@ BLASTER PISTOL
void blasterFire( gentity_t *ent )
{
- gentity_t *m;
+// gentity_t *m =
- m = fire_blaster( ent, muzzle, forward );
+ fire_blaster( ent, muzzle, forward );
// VectorAdd( m->s.pos.trDelta, ent->client->ps.velocity, m->s.pos.trDelta ); // "real" physics
}
@@ -493,9 +493,9 @@ PULSE RIFLE
void pulseRifleFire( gentity_t *ent )
{
- gentity_t *m;
+// gentity_t *m =
- m = fire_pulseRifle( ent, muzzle, forward );
+ fire_pulseRifle( ent, muzzle, forward );
// VectorAdd( m->s.pos.trDelta, ent->client->ps.velocity, m->s.pos.trDelta ); // "real" physics
}
@@ -510,9 +510,9 @@ FLAME THROWER
void flamerFire( gentity_t *ent )
{
- gentity_t *m;
+// gentity_t *m =
- m = fire_flamer( ent, muzzle, forward );
+ fire_flamer( ent, muzzle, forward );
}
/*
@@ -525,9 +525,9 @@ GRENADE
void throwGrenade( gentity_t *ent )
{
- gentity_t *m;
+// gentity_t *m =
- m = launch_grenade( ent, muzzle, forward );
+ launch_grenade( ent, muzzle, forward );
}
/*
@@ -657,17 +657,17 @@ LCChargeFire
*/
void LCChargeFire( gentity_t *ent, qboolean secondary )
{
- gentity_t *m;
+// gentity_t *m;
if( secondary )
{
- m = fire_luciferCannon( ent, muzzle, forward, LCANNON_SECONDARY_DAMAGE,
+ fire_luciferCannon( ent, muzzle, forward, LCANNON_SECONDARY_DAMAGE,
LCANNON_SECONDARY_RADIUS );
ent->client->ps.weaponTime = LCANNON_REPEAT;
}
else
{
- m = fire_luciferCannon( ent, muzzle, forward, ent->client->ps.stats[ STAT_MISC ], LCANNON_RADIUS );
+ fire_luciferCannon( ent, muzzle, forward, ent->client->ps.stats[ STAT_MISC ], LCANNON_RADIUS );
ent->client->ps.weaponTime = LCANNON_CHARGEREPEAT;
}
@@ -854,9 +854,9 @@ void buildFire( gentity_t *ent, dynMenu_t menu )
void slowBlobFire( gentity_t *ent )
{
- gentity_t *m;
+// gentity_t *m =
- m = fire_slowBlob( ent, muzzle, forward );
+ fire_slowBlob( ent, muzzle, forward );
// VectorAdd( m->s.pos.trDelta, ent->client->ps.velocity, m->s.pos.trDelta ); // "real" physics
}
@@ -1411,9 +1411,9 @@ qboolean CheckPounceAttack( gentity_t *ent )
void bounceBallFire( gentity_t *ent )
{
- gentity_t *m;
+// gentity_t *m =
- m = fire_bounceBall( ent, muzzle, forward );
+ fire_bounceBall( ent, muzzle, forward );
// VectorAdd( m->s.pos.trDelta, ent->client->ps.velocity, m->s.pos.trDelta ); // "real" physics
}