From 60d3a5e6b386def65467716f6eedf9bdd4924bbc Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 27 Nov 2023 16:08:17 +0100 Subject: [PATCH] SW: fix vertical spread for the Uzi --- 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 cfce813e87..9b98dbfeed 100644 --- a/source/games/sw/src/weapon.cpp +++ b/source/games/sw/src/weapon.cpp @@ -15272,7 +15272,7 @@ int InitUzi(DSWPlayer* pp) else { daang = pp->GetActor()->spr.Angles.Yaw + mapangle(RandomRange(24) - 12); - setFreeAimVelocity(dax, daz, pp->getPitchWithView(), 1000. - (RandomRangeF(24000/256.) - 12000/256.)); + setFreeAimVelocity(dax, daz, pp->getPitchWithView(), 1000. + (RandomRangeF(24000 / 16.) - 12000 / 16.)); } DVector3 vect(daang.ToVector() * dax, daz);