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.
This commit is contained in:
Wolfy 2014-10-01 21:19:32 -05:00
parent 5b07cf8ff0
commit 197e5fce55

View file

@ -973,9 +973,7 @@ void P_DoSuperTransformation(player_t *player, boolean giverings)
// Transformation animation // Transformation animation
P_SetPlayerMobjState(player->mo, S_PLAY_SUPERTRANS1); P_SetPlayerMobjState(player->mo, S_PLAY_SUPERTRANS1);
player->mo->momx >>= 1; player->mo->momx = player->mo->momy = player->mo->momz = 0;
player->mo->momy >>= 1;
player->mo->momz >>= 1;
if (giverings) if (giverings)
{ {