mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
Cleaned up.
This commit is contained in:
parent
3c7e1e0528
commit
791852a6bd
1 changed files with 2 additions and 5 deletions
|
@ -1665,8 +1665,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomBulletAttack)
|
|||
{
|
||||
DAngle angle = bangle;
|
||||
DAngle slope = bslope;
|
||||
DAngle tempangle = (pr_cwbullet.Random2() / 255.);
|
||||
DAngle tempslope = (pr_cwbullet.Random2() / 255.);
|
||||
|
||||
if (flags & CBAF_EXPLICITANGLE)
|
||||
{
|
||||
|
@ -1675,8 +1673,8 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomBulletAttack)
|
|||
}
|
||||
else
|
||||
{
|
||||
angle += spread_xy * tempangle;
|
||||
slope += spread_z * tempslope;
|
||||
angle += spread_xy * (pr_cwbullet.Random2() / 255.);
|
||||
slope += spread_z * (pr_cwbullet.Random2() / 255.);
|
||||
}
|
||||
|
||||
int damage = damageperbullet;
|
||||
|
@ -1838,7 +1836,6 @@ static void FireBulletMissile(AActor *self, PClassActor *missile, AActor *puff,
|
|||
double y = Spawnofs_xy * angle.Sin();
|
||||
DAngle ang = self->Angles.Yaw - 90;
|
||||
DVector2 ofs = ang.ToVector(Spawnofs_xy);
|
||||
//AActor *proj = P_SpawnMissileXYZ(self->Vec3Offset(x, y, z + self->GetBobOffset()), self, puff, missile, false);
|
||||
|
||||
AActor *proj = P_SpawnPlayerMissile(self, ofs.X, ofs.Y, Spawnheight, missile, angle, nullptr, nullptr, false, true);
|
||||
if (proj)
|
||||
|
|
Loading…
Reference in a new issue