mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
You know what, let's make this less hacky.
This commit is contained in:
parent
cc4d780371
commit
a533701d85
1 changed files with 2 additions and 3 deletions
|
@ -6993,10 +6993,9 @@ static void P_MovePlayer(player_t *player)
|
|||
if ((player->powers[pw_shield] & ~(SH_FORCEHP|SH_STACK)) == SH_FORCE)
|
||||
{
|
||||
player->pflags |= PF_THOKKED|PF_SHIELDABILITY;
|
||||
player->mo->momz = // would intentionally carry to post-endif line as multiple-assignment
|
||||
#if 1 // almost imperceptible hop for the purposes of aligning with the aura for as long as possible
|
||||
P_SetObjectMomZ(player->mo, FixedDiv(-4*P_GetMobjGravity(player->mo), player->mo->scale), false);
|
||||
#else
|
||||
player->mo->momz = // intentionally carries to post-endif line as multiple-assignment
|
||||
-4*P_GetMobjGravity(player->mo);
|
||||
#endif
|
||||
player->mo->momx = player->mo->momy = 0;
|
||||
S_StartSound(player->mo, sfx_ngskid);
|
||||
|
|
Loading…
Reference in a new issue