Merge pull request #25 from petr666/master

Fix comfort vignette to not be applied when not moving/turning
This commit is contained in:
Simon 2022-03-19 10:32:46 +00:00 committed by GitHub
commit 950f36de85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2603,7 +2603,7 @@ static void CG_DrawVignette( void )
}
const float yawDelta = fabsf(vr->clientview_yaw_delta);
if (VectorLength(cg.predictedPlayerState.velocity) > 30.0 || (yawDelta > 0 && yawDelta < 20) || (yawDelta > 340))
if (VectorLength(cg.predictedPlayerState.velocity) > 30.0 || (yawDelta > 1 && yawDelta < 20) || (yawDelta > 340))
{
if (currentComfortVignetteValue < comfortVignetteValue)
{