mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-16 04:30:38 +00:00
- SW: Fix regression from 1900cf1fcc
where the conversion from GetDeltaAngle()
to getincangle()
got muddled up.
This commit is contained in:
parent
2bc4291817
commit
77265b3138
1 changed files with 2 additions and 2 deletions
|
@ -8310,9 +8310,9 @@ MissileSeek(int16_t Weapon, int16_t delay_tics, int16_t aware_range/*, int16_t d
|
|||
hp = &sprite[User[Weapon]->WpnGoal];
|
||||
|
||||
// move to correct angle
|
||||
ang2tgt = getangle(hp->y - sp->y, hp->x - sp->x);
|
||||
ang2tgt = getangle(hp->x - sp->x, hp->y - sp->y);
|
||||
|
||||
delta_ang = getincangle(sp->ang, ang2tgt);
|
||||
delta_ang = getincangle(ang2tgt, sp->ang);
|
||||
|
||||
if (labs(delta_ang) > 32)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue