Commit a868d2a0 authored by Richard Gobeille's avatar Richard Gobeille

Duke3d: block horiz input while the player view is returning to center

parent dc46c60e
......@@ -3036,7 +3036,8 @@ enum inputlock_t
static int P_CheckLockedMovement(int const playerNum)
{
auto const pPlayer = g_player[playerNum].ps;
auto & thisPlayer = g_player[playerNum];
auto const pPlayer = thisPlayer.ps;
if (pPlayer->on_crane >= 0)
return IL_NOMOVE|IL_NOANGLE;
......@@ -3044,6 +3045,9 @@ static int P_CheckLockedMovement(int const playerNum)
if (pPlayer->newowner != -1)
return IL_NOANGLE|IL_NOHORIZ;
if (pPlayer->return_to_center > 0 || thisPlayer.horizRecenter)
return IL_NOHORIZ;
if (pPlayer->dead_flag || 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment