- Duke: Fix sign on 4x tangent offsets.

This commit is contained in:
Mitchell Richters 2022-10-11 13:39:41 +11:00 committed by Christoph Oelckers
parent cea2b6b428
commit 94941adce8
3 changed files with 4 additions and 4 deletions

View file

@ -2241,7 +2241,7 @@ static void operateweapon(int snum, ESyncBits actions)
else
{
vel = 140/16.;
zvel = 4 + p->horizon.sum().Tan() * 10.;
zvel = -4 + p->horizon.sum().Tan() * 10.;
}
auto spawned = CreateActor(p->cursector, p->pos + p->angle.ang.ToVector() * 16, HEAVYHBOMB, -16, 9, 9,

View file

@ -2750,7 +2750,7 @@ static void operateweapon(int snum, ESyncBits actions, sectortype* psectp)
else
{
vel = 140 / 16.;
zvel = 4 + p->horizon.sum().Tan() * 10.;
zvel = -4 + p->horizon.sum().Tan() * 10.;
}
auto spawned = CreateActor(p->cursector, p->pos + p->angle.ang.ToVector() * 16, HEAVYHBOMB, -16, 9, 9,
@ -3157,7 +3157,7 @@ static void operateweapon(int snum, ESyncBits actions, sectortype* psectp)
else
{
vel = 2.;
zvel = 4 + p->horizon.sum().Tan() * 10.;
zvel = -4 + p->horizon.sum().Tan() * 10.;
}
CreateActor(p->cursector, p->pos + p->angle.ang.ToVector() * 16, POWDERKEG, -16, 9, 9, p->angle.ang, vel * 2, zvel, pact, 1);

View file

@ -338,7 +338,7 @@ void operateweapon_ww(int snum, ESyncBits actions)
else
{
vel = 140 / 16.;
zvel = 4 + p->horizon.sum().Tan() * 10.;
zvel = -4 + p->horizon.sum().Tan() * 10.;
}
auto spawned = CreateActor(p->cursector, p->pos + p->angle.ang.ToVector() * 16, HEAVYHBOMB, -16, 9, 9,