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
1 changed files with 6 additions and 0 deletions

View File

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