RR: set .horizRecenter when handling SK_CENTER_VIEW

This seems so obvious that I almost think I intentionally left it out before, but I can't remember why I would have.
This commit is contained in:
Richard C. Gobeille 2020-05-04 18:17:45 -07:00 committed by Christoph Oelckers
parent 8225d20e23
commit 08bc2fbbcd

View file

@ -8710,7 +8710,10 @@ HORIZONLY:;
if (TEST_SYNC_KEY(playerBits, SK_CENTER_VIEW) || pPlayer->hard_landing) if (TEST_SYNC_KEY(playerBits, SK_CENTER_VIEW) || pPlayer->hard_landing)
if (VM_OnEvent(EVENT_RETURNTOCENTER, pPlayer->i,playerNum) == 0) if (VM_OnEvent(EVENT_RETURNTOCENTER, pPlayer->i,playerNum) == 0)
{
pPlayer->return_to_center = 9; pPlayer->return_to_center = 9;
thisPlayer.horizRecenter = true;
}
if (TEST_SYNC_KEY(playerBits, SK_LOOK_UP)) if (TEST_SYNC_KEY(playerBits, SK_LOOK_UP))
{ {
@ -9359,7 +9362,10 @@ void P_DHProcessInput(int playerNum)
pPlayer->return_to_center--; pPlayer->return_to_center--;
if (TEST_SYNC_KEY(playerBits, SK_CENTER_VIEW) || pPlayer->hard_landing) if (TEST_SYNC_KEY(playerBits, SK_CENTER_VIEW) || pPlayer->hard_landing)
{
pPlayer->return_to_center = 9; pPlayer->return_to_center = 9;
thisPlayer.horizRecenter = true;
}
if (TEST_SYNC_KEY(playerBits, SK_LOOK_UP)) if (TEST_SYNC_KEY(playerBits, SK_LOOK_UP))
{ {