Duke3d: 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 c53edd9e5a
commit 3f7914ad57

View file

@ -5703,7 +5703,10 @@ RECHECK:
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))
{ {