mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- Duke: Fix sign on 4x tangent offsets.
This commit is contained in:
parent
cea2b6b428
commit
94941adce8
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue