From 84dbd935d7eedcab2e4194f8e74e00bd299cfec3 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 11 Oct 2022 17:56:10 +1100 Subject: [PATCH] - SW: Pitch-adjusted velocity for `PlayerInitCaltrops()`. --- source/games/sw/src/jweapon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/jweapon.cpp b/source/games/sw/src/jweapon.cpp index eed7f4ad6..f421de61f 100644 --- a/source/games/sw/src/jweapon.cpp +++ b/source/games/sw/src/jweapon.cpp @@ -1655,7 +1655,7 @@ int PlayerInitCaltrops(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); double oclipdist = plActor->clipdist; plActor->clipdist = 0;