- all those 'actor->SetZ(actor->Z() +...) calls weren't pretty so now there's an AddZ method, too.

This commit is contained in:
Christoph Oelckers 2016-01-18 22:32:36 +01:00
commit ef7be016c4
9 changed files with 13 additions and 13 deletions

View file

@ -132,7 +132,7 @@ bool AArtiPoisonBag3::Use (bool pickup)
mo->velz = FixedMul(speed, finesine[modpitch]);
mo->velx = FixedMul(xyscale, finecosine[angle]) + (Owner->velx >> 1);
mo->vely = FixedMul(xyscale, finesine[angle]) + (Owner->vely >> 1);
mo->SetZ(mo->Z() + FixedMul(mo->Speed, finesine[orgpitch]));
mo->AddZ(FixedMul(mo->Speed, finesine[orgpitch]));
mo->target = Owner;
mo->tics -= pr_poisonbag()&3;
@ -421,7 +421,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_PoisonBagDamage)
P_RadiusAttack (self, self->target, 4, 40, self->DamageType, RADF_HURTSOURCE);
bobIndex = self->special2;
self->SetZ(self->Z() + finesine[bobIndex << BOBTOFINESHIFT] >> 1);
self->AddZ(finesine[bobIndex << BOBTOFINESHIFT] >> 1);
self->special2 = (bobIndex + 1) & 63;
}