summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2010-03-03 19:26:07 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:29 +0000
commit02fe20824c8fc7fbbe6086d23ac34ca7c7e02192 (patch)
tree25b4952b748ca9a657ee2a7eefd2f2584df58f39
parent0a088339d9d946d9b2bea208d66bf9f21f6d9378 (diff)
* Apply the fix in r1917 to another case
* Excise some redundant bounce code
-rw-r--r--src/game/g_missile.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/game/g_missile.c b/src/game/g_missile.c
index 43cc9ec9..458b6d3f 100644
--- a/src/game/g_missile.c
+++ b/src/game/g_missile.c
@@ -126,18 +126,7 @@ void G_MissileImpact( gentity_t *ent, trace_t *trace )
return;
}
- if( !strcmp( ent->classname, "grenade" ) )
- {
- //grenade doesn't explode on impact
- G_BounceMissile( ent, trace );
-
- //only play a sound if requested
- if( !( ent->s.eFlags & EF_NO_BOUNCE_SOUND ) )
- G_AddEvent( ent, EV_GRENADE_BOUNCE, 0 );
-
- return;
- }
- else if( !strcmp( ent->classname, "lockblob" ) )
+ if( !strcmp( ent->classname, "lockblob" ) )
{
if( other->client && other->client->ps.stats[ STAT_TEAM ] == TEAM_HUMANS )
{
@@ -268,8 +257,7 @@ void G_RunMissile( gentity_t *ent )
if( tr.fraction < 1.0f )
{
- if( !ent->pointAgainstWorld || tr.contents & CONTENTS_BODY ||
- ( tr.entityNum >= 0 && tr.entityNum != ENTITYNUM_WORLD ) )
+ if( !ent->pointAgainstWorld || tr.contents & CONTENTS_BODY )
{
// We hit an entity or we don't care
impact = qtrue;