- all those 'actor->SetZ(actor->Z() +...) calls weren't pretty so now there's an AddZ method, too.
This commit is contained in:
parent
c8052ce1b8
commit
ef7be016c4
9 changed files with 13 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue