mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- UpdateChange
This commit is contained in:
parent
c3510091b0
commit
bd79d544d6
1 changed files with 2 additions and 2 deletions
|
@ -38,13 +38,13 @@ public:
|
|||
|
||||
inline void UpdateChangeXY(DSWActor* actor)
|
||||
{
|
||||
actor->user.change.XY() = MOVExy(actor->int_xvel(), actor->spr.angle);
|
||||
actor->user.change.XY() = actor->spr.angle.ToVector() * actor->vel.X;
|
||||
}
|
||||
|
||||
inline void UpdateChange(DSWActor* actor, double zfactor = 1.0)
|
||||
{
|
||||
UpdateChangeXY(actor);
|
||||
actor->user.set_int_change_z(int(actor->int_zvel() * zfactor));
|
||||
actor->user.change.Z = actor->vel.Z * zfactor;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue