From e019939590e0efa285902a933ca8f5144e472651 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 29 Jul 2020 05:37:46 +1000 Subject: [PATCH] - possible fix for continual rotscrnang thrashing when dead that was reported in #66. --- 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 e8dc59356..974d608fd 100644 --- a/source/games/duke/src/player.cpp +++ b/source/games/duke/src/player.cpp @@ -800,7 +800,7 @@ void applylook(int snum, double factor) { auto p = &ps[snum]; - if (sprite[p->i].extra > 0) + if (sprite[p->i].extra >= 0) { p->addrotscrnang(factor * -0.5 * fix16_to_dbl(p->q16rotscrnang)); if (abs(p->q16rotscrnang) < FRACUNIT) p->q16rotscrnang = 0;