Fix CA_BOUNCE height when flipped (Fixes #428)
- Jan 08, 2021
-
-
Zwip-Zwap Zapony authored
Fix P_DoAbilityBounce() always using "max", instead of "min" while upside-down and "max" while not
-
This merge request fixes P_DoAbilityBounce(player,changemomz)
always using the max
of two values in all cases, where it should instead be using min
while upside-down; fixes #428 (closed).
Also added some blank lines to make the function (subjectively-)nicer to look at, and moved prevmomz
initialization into the if (changemomz)
block.
TL;DR (for changelog authors):
Fixed tail-bouncing height in reverse gravity
Fix P_DoAbilityBounce() always using "max", instead of "min" while upside-down and "max" while not