From db2f9b9b13a4fb907aa2d69a8d7c3dca8a572c34 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 11 Oct 2022 17:12:35 +1100 Subject: [PATCH] - SW: Pitch-adjusted velocity for `InitGrenade()`. --- source/games/sw/src/weapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/weapon.cpp b/source/games/sw/src/weapon.cpp index 612030491..5ff0a8e52 100644 --- a/source/games/sw/src/weapon.cpp +++ b/source/games/sw/src/weapon.cpp @@ -16695,7 +16695,7 @@ int InitGrenade(PLAYER* pp) if (pp->Flags & (PF_DIVING) || SpriteInUnderwaterArea(actorNew)) actorNew->user.Flags |= (SPR_UNDERWATER); - actorNew->vel.Z = pp->horizon.horiz.Tan() * HORIZ_MULTF; + setFreeAimVelocity(actorNew->vel.X, actorNew->vel.Z, pp->horizon.horiz, HORIZ_MULTF); auto oclipdist = actor->clipdist; actor->clipdist = 0;