From ded0edae0cf9c8d4fd9212e68278fc559e97e40b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 18 Jul 2020 14:30:17 +0200 Subject: [PATCH] - fixed return_to_center --- source/games/duke/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/player.cpp b/source/games/duke/src/player.cpp index 4e36fb43b..b25385d92 100644 --- a/source/games/duke/src/player.cpp +++ b/source/games/duke/src/player.cpp @@ -867,7 +867,7 @@ void sethorizon(int snum, int sb_snum, double factor, bool frominput) } else if (p->return_to_center > 0 && (sb_snum & (SKB_LOOK_UP | SKB_LOOK_DOWN)) == 0) // only snap back if no relevant button is pressed. { - p->return_to_center--; + if (!frominput) p->return_to_center--; p->q16horiz += factor * (frominput? 2.016 : 1.) * (F16(33) - (p->q16horiz / 3)); // in P_GetInput this used different factors than in the original code. Hm... }