mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fixed calculations in AdjusrPlayerAngle.
This commit is contained in:
parent
ec15c7f4c3
commit
d662cece15
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ extend class Actor
|
||||||
|
|
||||||
void AdjustPlayerAngle(FTranslatedLineTarget t)
|
void AdjustPlayerAngle(FTranslatedLineTarget t)
|
||||||
{
|
{
|
||||||
double difference = t.angleFromSource;
|
double difference = deltaangle(angle, t.angleFromSource);
|
||||||
if (abs(difference) > MAX_ANGLE_ADJUST)
|
if (abs(difference) > MAX_ANGLE_ADJUST)
|
||||||
{
|
{
|
||||||
if (difference > 0)
|
if (difference > 0)
|
||||||
|
|
Loading…
Reference in a new issue