Skip to content
Permalink
Browse files

game: fix flamer direction was not normalized at start (coverity)

  • Loading branch information...
Aranud committed Mar 13, 2019
1 parent eba32c9 commit 632942da5a3fdae582c0733e45b773d79cabd424
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/game/g_weapon.c
@@ -3801,8 +3801,9 @@ gentity_t *Weapon_FlamethrowerFire(gentity_t *ent)
// flamethrower exploit fix
ent->client->flametime = level.time + 2500;

VectorCopy(forward, dir);
VectorNormalize(dir);
VectorScale(forward, FLAME_START_SPEED, dir);
VectorScale(dir, FLAME_START_SPEED, dir);

return fire_flamechunk(ent, start, dir);
}

0 comments on commit 632942d

Please sign in to comment.
You can’t perform that action at this time.