From ac941c9413cf378985e7506f1c245fbfdf319e60 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 14 Jul 2014 01:40:43 +0200 Subject: remove some fancy hacks from the missile bounce code --- src/game/g_physics.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/g_physics.c b/src/game/g_physics.c index 9e5b23d5..92ace354 100644 --- a/src/game/g_physics.c +++ b/src/game/g_physics.c @@ -61,7 +61,6 @@ static void G_Bounce( gentity_t *ent, trace_t *trace ) if( VectorLength( ent->s.pos.trDelta ) < 10 ) { - VectorMA( trace->endpos, 0.5f, trace->plane.normal, trace->endpos ); // make sure it is off ground G_SetOrigin( ent, trace->endpos ); ent->s.groundEntityNum = trace->entityNum; VectorCopy( trace->plane.normal, ent->s.origin2 ); @@ -69,8 +68,8 @@ static void G_Bounce( gentity_t *ent, trace_t *trace ) return; } + VectorMA( ent->r.currentOrigin, 0.15, trace->plane.normal, ent->r.currentOrigin ); VectorCopy( ent->r.currentOrigin, ent->s.pos.trBase ); - VectorAdd( ent->r.currentOrigin, trace->plane.normal, ent->r.currentOrigin); ent->s.pos.trTime = level.time; } -- cgit