mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-18 00:11:23 +00:00
Fixed: A_FaceMovementDirection would not adjust the angle if it was actually under the limit.
This commit is contained in:
parent
df4a8e38c5
commit
e22043a25b
1 changed files with 2 additions and 4 deletions
|
@ -7267,12 +7267,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_FaceMovementDirection)
|
||||||
{
|
{
|
||||||
current -= anglelimit + offset;
|
current -= anglelimit + offset;
|
||||||
}
|
}
|
||||||
else // huh???
|
|
||||||
{
|
|
||||||
current = angle + 180. + offset;
|
|
||||||
}
|
|
||||||
mobj->SetAngle(current, !!(flags & FMDF_INTERPOLATE));
|
mobj->SetAngle(current, !!(flags & FMDF_INTERPOLATE));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
mobj->SetAngle(angle + offset, !!(flags & FMDF_INTERPOLATE));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
mobj->SetAngle(angle + offset, !!(flags & FMDF_INTERPOLATE));
|
mobj->SetAngle(angle + offset, !!(flags & FMDF_INTERPOLATE));
|
||||||
|
|
Loading…
Reference in a new issue