- 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

@ -3107,7 +3107,7 @@ FUNC(LS_GlassBreak)
{
glass = Spawn("GlassJunk", x, y, ONFLOORZ, ALLOW_REPLACE);
glass->SetZ(glass->Z() + 24 * FRACUNIT);
glass->AddZ(24 * FRACUNIT);
glass->SetState (glass->SpawnState + (pr_glass() % glass->health));
an = pr_glass() << (32-8);
glass->angle = an;