Skip to content

Commit

Permalink
game: fix flamer direction was not normalized at start (coverity)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aranud committed Mar 13, 2019
1 parent eba32c9 commit 632942d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/g_weapon.c
Expand Up @@ -3801,8 +3801,9 @@ gentity_t *Weapon_FlamethrowerFire(gentity_t *ent)
// flamethrower exploit fix // flamethrower exploit fix
ent->client->flametime = level.time + 2500; ent->client->flametime = level.time + 2500;


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


return fire_flamechunk(ent, start, dir); return fire_flamechunk(ent, start, dir);
} }
Expand Down

0 comments on commit 632942d

Please sign in to comment.