From 77265b31385b8e7f0483869523a240d79fffa466 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 22 Sep 2020 20:02:58 +1000 Subject: [PATCH] - SW: Fix regression from 1900cf1fcc08dd316c327b4edc7cf6faf2232958 where the conversion from `GetDeltaAngle()` to `getincangle()` got muddled up. --- source/sw/src/weapon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sw/src/weapon.cpp b/source/sw/src/weapon.cpp index cfdd48e11..e516181fe 100644 --- a/source/sw/src/weapon.cpp +++ b/source/sw/src/weapon.cpp @@ -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) {