Set instawhip recharge's scale only if it differs from the player's

This commit is contained in:
JugadorXEI 2024-05-19 22:24:28 +02:00
parent 8326292a3f
commit 636d7bb3ca

View file

@ -81,7 +81,8 @@ void Obj_InstaWhipRechargeThink(mobj_t *x)
} }
P_MoveOrigin(x, target->x, target->y, target->z + (target->height / 2)); P_MoveOrigin(x, target->x, target->y, target->z + (target->height / 2));
P_InstaScale(x, 2 * target->scale); if (x->scale != target->scale * 2)
P_InstaScale(x, target->scale * 2);
x->angle = target->angle + recharge_offset(x); x->angle = target->angle + recharge_offset(x);
// Flickers every other frame // Flickers every other frame