- 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

@ -568,9 +568,9 @@ bool P_Move (AActor *actor)
fixed_t savedz = actor->Z();
if (actor->Z() < tm.floorz)
actor->SetZ(actor->Z() + actor->FloatSpeed);
actor->AddZ(actor->FloatSpeed);
else
actor->SetZ(actor->Z() - actor->FloatSpeed);
actor->AddZ(-actor->FloatSpeed);
// [RH] Check to make sure there's nothing in the way of the float