- made P_AimLineAttack work through sector portals.

Note: Test output not removed yet!
This commit is contained in:
Christoph Oelckers 2016-03-02 20:44:02 +01:00
commit f5fd0df077
16 changed files with 466 additions and 334 deletions

View file

@ -82,7 +82,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_FireConePL1)
slope = P_AimLineAttack (self, angle, MELEERANGE, &t, 0, ALF_CHECK3D);
if (t.linetarget)
{
P_DamageMobj (t.linetarget, self, self, damage, NAME_Ice, DMG_USEANGLE, t.SourceAngleToTarget());
P_DamageMobj (t.linetarget, self, self, damage, NAME_Ice, DMG_USEANGLE, t.angleFromSource);
conedone = true;
break;
}