From 8193416e7e4faa09a0426abc9d71032e343c3f92 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 11 Oct 2022 17:14:09 +1100 Subject: [PATCH] - SW: Pitch-adjusted velocity for `InitFireball()`. --- source/games/sw/src/weapon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/games/sw/src/weapon.cpp b/source/games/sw/src/weapon.cpp index 1284128dd..e42a71494 100644 --- a/source/games/sw/src/weapon.cpp +++ b/source/games/sw/src/weapon.cpp @@ -16945,7 +16945,8 @@ int InitFireball(PLAYER* pp) actorNew->user.ceiling_dist = (6); actorNew->user.floor_dist = (6); - double zvel = pp->horizon.horiz.Tan() * 120.; + double zvel = 0.; + setFreeAimVelocity(actorNew->vel.X, zvel, pp->horizon.horiz, 120.); // at certain angles the clipping box was big enough to block the // initial positioning of the fireball.