mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-21 19:11:06 +00:00
- movesprite_ex refactoring, part 2
This commit is contained in:
parent
5dedce047a
commit
4b184c6d43
1 changed files with 4 additions and 4 deletions
|
@ -2472,8 +2472,8 @@ void onMotorcycleHit(int snum, DDukeActor* victim)
|
||||||
if (numplayers == 1)
|
if (numplayers == 1)
|
||||||
{
|
{
|
||||||
Collision coll;
|
Collision coll;
|
||||||
int ang = int(p->TiltStatus * 20 + p->angle.ang.Buildang());
|
DAngle ang = DAngle::fromBuild(p->TiltStatus * 20) + p->angle.ang;
|
||||||
movesprite_ex(victim, bcos(ang, -8), bsin(ang, -8), victim->int_zvel(), CLIPMASK0, coll);
|
movesprite_ex(victim, DVector3(ang.ToVector() * 4, victim->vel.Z), CLIPMASK0, coll);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2532,8 +2532,8 @@ void onBoatHit(int snum, DDukeActor* victim)
|
||||||
if (numplayers == 1)
|
if (numplayers == 1)
|
||||||
{
|
{
|
||||||
Collision coll;
|
Collision coll;
|
||||||
int ang = int(p->TiltStatus * 20 + p->angle.ang.Buildang());
|
DAngle ang = DAngle::fromBuild(p->TiltStatus * 20) + p->angle.ang;
|
||||||
movesprite_ex(victim, bcos(ang, -9), bsin(ang, -9), victim->int_zvel(), CLIPMASK0, coll);
|
movesprite_ex(victim, DVector3(ang.ToVector() * 2, victim->vel.Z), CLIPMASK0, coll);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue