From b4af9e87c1107e27627f978197695cca0ee69e3b Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 18 Jul 2021 18:13:37 +1000 Subject: [PATCH] - Blood: Make delirium rotscrnang smoother with use of more precision. --- source/games/blood/src/view.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/blood/src/view.cpp b/source/games/blood/src/view.cpp index 6b2a253a4..99a83feb8 100644 --- a/source/games/blood/src/view.cpp +++ b/source/games/blood/src/view.cpp @@ -618,16 +618,16 @@ void viewDrawScreen(bool sceneonly) binangle rotscrnang; SetupView(cX, cY, cZ, cA, cH, nSectnum, zDelta, shakeX, shakeY, rotscrnang); - int tilt = interpolatedangle(gScreenTiltO, gScreenTilt, gInterpolate); + binangle tilt = interpolatedangle(buildang(gScreenTiltO), buildang(gScreenTilt), gInterpolate); uint8_t v14 = 0; uint8_t v10 = 0; bool bDelirium = powerupCheck(gView, kPwUpDeliriumShroom) > 0; static bool bDeliriumOld = false; //int tiltcs, tiltdim; uint8_t otherview = powerupCheck(gView, kPwUpCrystalBall) > 0; - if (tilt || bDelirium) + if (tilt.asbam() || bDelirium) { - rotscrnang = buildang(tilt); + rotscrnang = tilt; } else if (otherview && gNetPlayers > 1) { @@ -689,7 +689,7 @@ void viewDrawScreen(bool sceneonly) } cH = q16horiz(ClipRange(cH.asq16(), gi->playerHorizMin(), gi->playerHorizMax())); - if ((tilt || bDelirium) && !sceneonly) + if ((tilt.asbam() || bDelirium) && !sceneonly) { if (gDeliriumBlur) {