mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-03 06:33:14 +00:00
Ditto with regards to glideandclimb.
This commit is contained in:
parent
f844fb3460
commit
cd0c2347df
1 changed files with 7 additions and 9 deletions
|
|
@ -6570,9 +6570,8 @@ static void P_MovePlayer(player_t *player)
|
||||||
P_SetPlayerMobjState(player->mo, S_PLAY_STND);
|
P_SetPlayerMobjState(player->mo, S_PLAY_STND);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(player->charability == CA_GLIDEANDCLIMB) || player->gotflag) // If you can't glide, then why the heck would you be gliding?
|
if ((!(player->charability == CA_GLIDEANDCLIMB) || player->gotflag) // If you can't glide, then why the heck would you be gliding?
|
||||||
{
|
&& (player->pflags & PF_GLIDING || player->climbing))
|
||||||
if (player->pflags & PF_GLIDING || player->climbing)
|
|
||||||
{
|
{
|
||||||
if (onground)
|
if (onground)
|
||||||
P_SetPlayerMobjState(player->mo, S_PLAY_WALK);
|
P_SetPlayerMobjState(player->mo, S_PLAY_WALK);
|
||||||
|
|
@ -6581,7 +6580,6 @@ static void P_MovePlayer(player_t *player)
|
||||||
player->pflags |= PF_JUMPED;
|
player->pflags |= PF_JUMPED;
|
||||||
P_SetPlayerMobjState(player->mo, S_PLAY_JUMP);
|
P_SetPlayerMobjState(player->mo, S_PLAY_JUMP);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
player->pflags &= ~PF_GLIDING;
|
player->pflags &= ~PF_GLIDING;
|
||||||
player->glidetime = 0;
|
player->glidetime = 0;
|
||||||
player->climbing = 0;
|
player->climbing = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue