Skip to content

Commit

Permalink
game: use correct grenade type in Use_Shooter()
Browse files Browse the repository at this point in the history
  • Loading branch information
Aranud committed Nov 8, 2017
1 parent d671ed8 commit 9d91897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/g_misc.c
Expand Up @@ -564,7 +564,7 @@ void Use_Shooter(gentity_t *ent, gentity_t *other, gentity_t *activator)
{
VectorScale(dir, 700, dir); // had to add this as fire_grenade now expects a non-normalized direction vector
// FIXME: why we do normalize the vector before this switch? See comment of fire_grenade
fire_grenade(ent, ent->s.origin, dir, WP_GRENADE_LAUNCHER);
fire_grenade(ent, ent->s.origin, dir, ent->s.weapon);
}
else if (GetWeaponTableData(ent->s.weapon)->isPanzer)
{
Expand Down

0 comments on commit 9d91897

Please sign in to comment.