Duke3d: fix player still being able to look around while frozen

This commit is contained in:
Richard C. Gobeille 2020-06-13 14:56:49 -07:00 committed by Christoph Oelckers
parent e641c82cdc
commit 815df3ed38
1 changed files with 1 additions and 1 deletions

View File

@ -3020,7 +3020,7 @@ static int P_CheckLockedMovement(int const playerNum)
auto &thisPlayer = g_player[playerNum];
auto const pPlayer = thisPlayer.ps;
if ((pPlayer->dead_flag && !ud.god) || pPlayer->fist_incs || pPlayer->transporter_hold > 2 || pPlayer->hard_landing || pPlayer->access_incs > 0
if (sprite[pPlayer->i].extra <= 0 || (pPlayer->dead_flag && !ud.god) || pPlayer->fist_incs || pPlayer->transporter_hold > 2 || pPlayer->hard_landing || pPlayer->access_incs > 0
|| pPlayer->knee_incs > 0
|| (PWEAPON(playerNum, pPlayer->curr_weapon, WorksLike) == TRIPBOMB_WEAPON && pPlayer->kickback_pic > 1
&& pPlayer->kickback_pic < PWEAPON(playerNum, pPlayer->curr_weapon, FireDelay)))