Blood: don't update view angle when game is paused

This commit is contained in:
nukeykt 2020-01-30 23:19:48 +09:00 committed by Christoph Oelckers
parent c8372c233e
commit c50f54d064

View file

@ -385,7 +385,7 @@ void ctrlGetInput(void)
gInput.strafe = clamp(gInput.strafe + input.strafe, -2048, 2048); gInput.strafe = clamp(gInput.strafe + input.strafe, -2048, 2048);
gInput.q16turn = fix16_sadd(gInput.q16turn, input.q16turn); gInput.q16turn = fix16_sadd(gInput.q16turn, input.q16turn);
gInput.q16mlook = fix16_clamp(fix16_sadd(gInput.q16mlook, input.q16mlook), F16(-127)>>2, F16(127)>>2); gInput.q16mlook = fix16_clamp(fix16_sadd(gInput.q16mlook, input.q16mlook), F16(-127)>>2, F16(127)>>2);
if (gMe && gMe->pXSprite->health != 0) if (gMe && gMe->pXSprite->health != 0 && !gPaused)
{ {
CONSTEXPR int upAngle = 289; CONSTEXPR int upAngle = 289;
CONSTEXPR int downAngle = -347; CONSTEXPR int downAngle = -347;