- RR: fixed bad angle math in shootmortar

This commit is contained in:
Christoph Oelckers 2022-11-03 11:08:40 +01:00
parent f5ce60fa6e
commit 77ae3b3b71

View file

@ -799,9 +799,6 @@ static void shootmortar(DDukeActor* actor, int p, const DVector3& pos, DAngle an
if (zvel < -8) if (zvel < -8)
zvel = -4; zvel = -4;
double vel = x / 16.; double vel = x / 16.;
ang += DAngle90;
double size = atwith == CHEERBOMB ? 0.25 : 0.5; double size = atwith == CHEERBOMB ? 0.25 : 0.5;
CreateActor(sect, pos.plusZ(-6) + ang.ToVector() * 4, atwith, -64, DVector2(size, size), ang, vel, zvel, actor, 1); CreateActor(sect, pos.plusZ(-6) + ang.ToVector() * 4, atwith, -64, DVector2(size, size), ang, vel, zvel, actor, 1);