From fe258dcdc974ab0a86d88bfb1bf503e0fa63f163 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:08:00 +0000 Subject: * Oops, forgot to fix the indenting on the previous commit --- src/game/g_combat.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/game/g_combat.c b/src/game/g_combat.c index f8866871..5cb879f1 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -982,14 +982,14 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker, if( g_dretchPunt.integer && targ->client->ps.stats[ STAT_CLASS ] == PCL_ALIEN_LEVEL0 ) { - vec3_t dir, push; + vec3_t dir, push; - VectorSubtract( targ->r.currentOrigin, attacker->r.currentOrigin, dir ); - VectorNormalizeFast( dir ); - VectorScale( dir, ( damage * 10.0f ), push ); - push[2] = 64.0f; - VectorAdd( targ->client->ps.velocity, push, targ->client->ps.velocity ); - return; + VectorSubtract( targ->r.currentOrigin, attacker->r.currentOrigin, dir ); + VectorNormalizeFast( dir ); + VectorScale( dir, ( damage * 10.0f ), push ); + push[2] = 64.0f; + VectorAdd( targ->client->ps.velocity, push, targ->client->ps.velocity ); + return; } // don't do friendly fire on movement attacks else if( mod == MOD_LEVEL4_TRAMPLE || mod == MOD_LEVEL3_POUNCE || -- cgit