mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
Corrected multiple oversights with swimming players dropping their friends when they shouldn't.
This commit is contained in:
parent
df7b375f05
commit
941bf8eb03
2 changed files with 5 additions and 2 deletions
|
@ -307,7 +307,10 @@ static void P_DoTailsCarry(player_t *sonic, player_t *tails)
|
|||
if ((sonic->pflags & PF_CARRIED) && sonic->mo->tracer == tails->mo)
|
||||
return;
|
||||
|
||||
if (!tails->powers[pw_tailsfly] && !(tails->charability == CA_FLY && tails->mo->state-states == S_PLAY_FLY_TIRED))
|
||||
if (tails->charability != CA_FLY && tails->charability != CA_SWIM)
|
||||
return;
|
||||
|
||||
if (!tails->powers[pw_tailsfly] && tails->mo->state-states != S_PLAY_FLY_TIRED)
|
||||
return;
|
||||
|
||||
if (tails->bot == 1)
|
||||
|
|
|
@ -9405,7 +9405,7 @@ void P_PlayerAfterThink(player_t *player)
|
|||
player->mo->height = FixedDiv(P_GetPlayerHeight(player), FixedDiv(14*FRACUNIT,10*FRACUNIT));
|
||||
|
||||
if (player->mo->tracer->player
|
||||
&& player->mo->tracer->state-states != S_PLAY_FLY
|
||||
&& !player->mo->tracer->player->powers[pw_tailsfly]
|
||||
&& player->mo->tracer->state-states != S_PLAY_FLY_TIRED)
|
||||
player->pflags &= ~PF_CARRIED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue