Fixed carry bug that I introduced a while ago.

This commit is contained in:
toasterbabe 2016-09-24 12:06:00 +01:00
parent 1de32b3dac
commit 41b4d9c565

View file

@ -9421,7 +9421,9 @@ 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->player->powers[pw_tailsfly]
// && !player->mo->tracer->player->powers[pw_tailsfly] -- race hazard - pw_tailsfly gets set to 0 a tic before the state switch to S_PLAY_FLY_TIRED...
&& player->mo->tracer->state-states != S_PLAY_FLY
&& player->mo->tracer->state-states != S_PLAY_SWIM
&& player->mo->tracer->state-states != S_PLAY_FLY_TIRED)
player->powers[pw_carry] = CR_NONE;