From 197e5fce558aaf93b22b4db954e3dd072975594b Mon Sep 17 00:00:00 2001 From: Wolfy Date: Wed, 1 Oct 2014 21:19:32 -0500 Subject: [PATCH] Change super transformation to freeze momentum instead of bitshifting Fixes https://mb.srb2.org/showthread.php?t=39921 where the issue before was that when you transformed your momentum would still have you moving slowly, which could cancel out the animation. --- src/p_user.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index a31666c9..cf76d461 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -973,9 +973,7 @@ void P_DoSuperTransformation(player_t *player, boolean giverings) // Transformation animation P_SetPlayerMobjState(player->mo, S_PLAY_SUPERTRANS1); - player->mo->momx >>= 1; - player->mo->momy >>= 1; - player->mo->momz >>= 1; + player->mo->momx = player->mo->momy = player->mo->momz = 0; if (giverings) {