made some changes to turn the CF_INTERPVIEW flag when changing angles into an op-in feature instead of making it automatic.

This commit is contained in:
Christoph Oelckers 2014-05-08 09:15:56 +02:00
commit 67ebbe3ed4
5 changed files with 21 additions and 18 deletions

View file

@ -2962,24 +2962,24 @@ void AActor::SetShade (int r, int g, int b)
fillcolor = MAKEARGB(ColorMatcher.Pick (r, g, b), r, g, b);
}
void AActor::SetPitch(int p)
void AActor::SetPitch(int p, bool interpolate)
{
if (p != pitch)
{
pitch = p;
if (player != NULL)
if (player != NULL && interpolate)
{
player->cheats |= CF_INTERPVIEW;
}
}
}
void AActor::SetAngle(angle_t ang)
void AActor::SetAngle(angle_t ang, bool interpolate)
{
if (ang != angle)
{
angle = ang;
if (player != NULL)
if (player != NULL && interpolate)
{
player->cheats |= CF_INTERPVIEW;
}