From 636d7bb3ca297d53303897544a42f0d34203292d Mon Sep 17 00:00:00 2001 From: JugadorXEI Date: Sun, 19 May 2024 22:24:28 +0200 Subject: [PATCH] Set instawhip recharge's scale only if it differs from the player's --- src/objects/instawhip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/objects/instawhip.c b/src/objects/instawhip.c index c5b6683fa..408d9bb36 100644 --- a/src/objects/instawhip.c +++ b/src/objects/instawhip.c @@ -81,7 +81,8 @@ void Obj_InstaWhipRechargeThink(mobj_t *x) } 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); // Flickers every other frame