From 95a5e512833e9935b8b3041c9dc4af6a96630f45 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 11 Oct 2022 17:04:08 +1100 Subject: [PATCH] - SW: Pitch-adjusted velocity for `InitTurretLaser()`. --- 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 fa3e83e33..37075e4ae 100644 --- a/source/games/sw/src/weapon.cpp +++ b/source/games/sw/src/weapon.cpp @@ -15957,7 +15957,7 @@ int InitTurretLaser(DSWActor* actor, PLAYER* pp) actorNew->spr.shade = -15; // the slower the missile travels the less of a zvel it needs - actorNew->vel.Z = pp->horizon.horiz.Tan() * 16.; + setFreeAimVelocity(actorNew->vel.X, actorNew->vel.Z, pp->horizon.horiz, 16.); actorNew->user.Radius = 200; actorNew->user.ceiling_dist = (1);