mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
8225d20e23
commit
08bc2fbbcd
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue