- Make view angles interpolate on a separate flag to the one that forces interpolation for the entire frame.

* As view angles are an offset, there's no reason why these cannot lerp separately.
This commit is contained in:
Mitchell Richters 2022-12-02 13:13:28 +11:00 committed by Christoph Oelckers
commit 9f9c1eb18a
6 changed files with 19 additions and 13 deletions

View file

@ -3473,7 +3473,7 @@ void AActor::SetViewPitch(DAngle p, int fflags)
ViewAngles.Pitch = p;
if (player != nullptr && (fflags & SPF_INTERPOLATE))
{
player->cheats |= CF_INTERPVIEW;
player->cheats |= CF_INTERPVIEWANGLES;
}
}
@ -3486,7 +3486,7 @@ void AActor::SetViewAngle(DAngle ang, int fflags)
ViewAngles.Yaw = ang;
if (player != nullptr && (fflags & SPF_INTERPOLATE))
{
player->cheats |= CF_INTERPVIEW;
player->cheats |= CF_INTERPVIEWANGLES;
}
}
@ -3499,7 +3499,7 @@ void AActor::SetViewRoll(DAngle r, int fflags)
ViewAngles.Roll = r;
if (player != nullptr && (fflags & SPF_INTERPOLATE))
{
player->cheats |= CF_INTERPVIEW;
player->cheats |= CF_INTERPVIEWANGLES;
}
}
}