From b774fed93e524256f45c7f2a518e71c1b9d3cf00 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 6 Apr 2016 18:46:52 +0200 Subject: [PATCH] - fixed: P_DrawSplash2's z-velocity was too high. This code was ported from the 2005 floating point version, at one point it replaced 128 with 0.5, but 128 as a fixed point value needs to be 1/512. as a floating point value. --- src/p_effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_effect.cpp b/src/p_effect.cpp index 249ba80f9..422fec6f1 100644 --- a/src/p_effect.cpp +++ b/src/p_effect.cpp @@ -587,7 +587,7 @@ void P_DrawSplash2 (int count, const DVector3 &pos, DAngle angle, int updown, in break; } - zvel = -0.5; + zvel = -1./512.; zspread = updown ? -6000 / 65536. : 6000 / 65536.; zadd = (updown == 2) ? 128 : 0;