mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-30 03:32:58 +00:00
srb2::Mobj: fix scaling functions, use P_SetScale
This commit is contained in:
parent
e9a63bf4f0
commit
5cd6bf81f7
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ struct Mobj : mobj_t
|
|||
|
||||
void scale(fixed n)
|
||||
{
|
||||
mobj_t::scale = n;
|
||||
P_SetScale(this, n);
|
||||
mobj_t::destscale = n;
|
||||
}
|
||||
|
||||
|
|
@ -173,7 +173,7 @@ struct Mobj : mobj_t
|
|||
|
||||
void scale_between(fixed start, fixed stop, std::optional<fixed> speed = {})
|
||||
{
|
||||
mobj_t::scale = start;
|
||||
P_SetScale(this, start);
|
||||
scale_to(stop, speed);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue