mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
- fixed: AdjustPlayerAngle should not use the angle that gets passed in the attack target struct. This is the actual angle of the attack but this function needs to adjust to the actual direction between player and victim.
This commit is contained in:
parent
b20956e207
commit
9b1442915f
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ void AdjustPlayerAngle (AActor *pmo, FTranslatedLineTarget *t)
|
|||
angle_t angle;
|
||||
int difference;
|
||||
|
||||
angle = t->angleFromSource;
|
||||
angle = pmo->AngleTo(t->linetarget);
|
||||
difference = (int)angle - (int)pmo->angle;
|
||||
if (abs(difference) > MAX_ANGLE_ADJUST)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue