mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +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;
|
||||
}
|
||||
else // huh???
|
||||
{
|
||||
current = angle + 180. + offset;
|
||||
}
|
||||
mobj->SetAngle(current, !!(flags & FMDF_INTERPOLATE));
|
||||
}
|
||||
else
|
||||
mobj->SetAngle(angle + offset, !!(flags & FMDF_INTERPOLATE));
|
||||
}
|
||||
else
|
||||
mobj->SetAngle(angle + offset, !!(flags & FMDF_INTERPOLATE));
|
||||
|
|
Loading…
Reference in a new issue