From 08bc2fbbcde12eea2178d3c4e87c0a213c5397ad Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Mon, 4 May 2020 18:17:45 -0700 Subject: [PATCH] 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. --- source/rr/src/player.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/rr/src/player.cpp b/source/rr/src/player.cpp index 0e2383cae..9bc180553 100644 --- a/source/rr/src/player.cpp +++ b/source/rr/src/player.cpp @@ -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)) {