From 5e72265bfa1b5646055b01e61762a405a1a427d4 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 0a2721831..bb7318b75 100644 --- a/source/games/sw/src/weapon.cpp +++ b/source/games/sw/src/weapon.cpp @@ -14806,7 +14806,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);