mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
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:
parent
5b07cf8ff0
commit
197e5fce55
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue