From a93e28aa2fead8ab25e1ed2755c573f3a992e29b Mon Sep 17 00:00:00 2001 From: Richard Allen Date: Sat, 20 Oct 2012 22:58:31 +0000 Subject: [PATCH] Change that could be responcible for m3 power fix --- reaction/code/game/g_weapon.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/reaction/code/game/g_weapon.c b/reaction/code/game/g_weapon.c index 32e518f5..ae719e6e 100644 --- a/reaction/code/game/g_weapon.c +++ b/reaction/code/game/g_weapon.c @@ -797,20 +797,22 @@ void ShotgunPattern(vec3_t origin, vec3_t origin2, int seed, gentity_t * ent, in VectorMA(origin, 8192, forward, end); VectorMA(end, r, right, end); VectorMA(end, u, up, end); - if (ShotgunPellet(origin, end, ent) && !hitClient) { - hitClient = qtrue; - ent->client->accuracy_hits++; - // Elder: Statistics tracking - if ((g_gametype.integer == GT_TEAMPLAY && level.team_round_going) || g_gametype.integer != GT_TEAMPLAY) { - switch (shotType) { - case WP_M3: - ent->client->pers.records[REC_M3HITS]++; - //ent->client->m3Hits++; - break; - case WP_HANDCANNON: - ent->client->pers.records[REC_HANDCANNONHITS]++; - //ent->client->hcHits++; - break; + if (ShotgunPellet(origin, end, ent)) { + if (!hitClient) { + hitClient = qtrue; + ent->client->accuracy_hits++; + // Elder: Statistics tracking + if ((g_gametype.integer == GT_TEAMPLAY && level.team_round_going) || g_gametype.integer != GT_TEAMPLAY) { + switch (shotType) { + case WP_M3: + ent->client->pers.records[REC_M3HITS]++; + //ent->client->m3Hits++; + break; + case WP_HANDCANNON: + ent->client->pers.records[REC_HANDCANNONHITS]++; + //ent->client->hcHits++; + break; + } } } }