From c267c214c25c7c47ad3bfb41cfd0dd868a3d95f7 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 29 Jan 2021 20:00:15 +1100 Subject: [PATCH] - Duke: Repair jumping zvel issue originating from 5e45f988e3d4a3afad01a801db5036fb12bb3c89 for Duke and 1c5c90d00fc1cc2219505a661d76d5136a38dfe2 for RR. * Thanks for backtracing, Graf :) * Fixes #259. --- source/games/duke/src/player_d.cpp | 2 +- source/games/duke/src/player_r.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/player_d.cpp b/source/games/duke/src/player_d.cpp index 8f054dabd..b86681a8a 100644 --- a/source/games/duke/src/player_d.cpp +++ b/source/games/duke/src/player_d.cpp @@ -1893,7 +1893,7 @@ static void movement(int snum, ESyncBits actions, int psect, int fz, int cz, int } else { - p->poszv -= bsin(128 + p->jumping_counter) / 12; + p->poszv -= bsin(2048 - 128 + p->jumping_counter) / 12; p->jumping_counter += 180; p->on_ground = 0; } diff --git a/source/games/duke/src/player_r.cpp b/source/games/duke/src/player_r.cpp index 2e2bcde57..794da0ff9 100644 --- a/source/games/duke/src/player_r.cpp +++ b/source/games/duke/src/player_r.cpp @@ -2268,7 +2268,7 @@ static void movement(int snum, ESyncBits actions, int psect, int fz, int cz, int } else { - p->poszv -= bsin(128 + p->jumping_counter) / 12; + p->poszv -= bsin(2048 - 128 + p->jumping_counter) / 12; p->jumping_counter += 180; p->on_ground = 0; }