From 7673766d192994c26ea482c85d1ae76c7ebb5021 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 13 Nov 2020 10:02:12 +1100 Subject: [PATCH] - Duke: Apply same zvel fix from 13839fc3e949cf196c6e0c1531b3cf1a17128813 to `shootgrowspark()` that was accidentally changed in f276a5f443588da08f2713592b92c8390b31a40f. I don't believe this to be an issue in any other spot for Duke. --- source/games/duke/src/player_d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/player_d.cpp b/source/games/duke/src/player_d.cpp index a5e701e6c..98ef0e6a4 100644 --- a/source/games/duke/src/player_d.cpp +++ b/source/games/duke/src/player_d.cpp @@ -957,7 +957,7 @@ static void shootgrowspark(DDukeActor* actor, int p, int sx, int sy, int sz, int int x; int j = findplayer(actor, &x); sz -= (4 << 8); - zvel = ((ps[j].posz - sz) << 8) / (ldist(ps[p].GetActor(), actor)); + zvel = ((ps[j].posz - sz) << 8) / (ldist(ps[j].GetActor(), actor)); zvel += 128 - (krand() & 255); sa += 32 - (krand() & 63); }