srb2::Mobj: fix scaling functions, use P_SetScale

This commit is contained in:
James R 2023-11-27 04:33:32 -08:00
parent e9a63bf4f0
commit 5cd6bf81f7

View file

@ -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);
}