Browse files

game: use correct grenade type in Use_Shooter()

  • Loading branch information...
Aranud committed Nov 8, 2017
1 parent d671ed8 commit 9d91897fade31834f86b5e39dcd8a7343481b5aa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/game/g_misc.c
@@ -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)

0 comments on commit 9d91897

Please sign in to comment.