From dbac44927232c178ad36e604a18887c820d44748 Mon Sep 17 00:00:00 2001 From: JugadorXEI Date: Tue, 21 May 2024 19:27:15 +0200 Subject: [PATCH] Fix hyudoro being incorrectly flipped during roaming status --- src/objects/hyudoro.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/objects/hyudoro.c b/src/objects/hyudoro.c index 1f3b3521a..c7705a1d8 100644 --- a/src/objects/hyudoro.c +++ b/src/objects/hyudoro.c @@ -111,7 +111,10 @@ sine_bob fixed_t sineofs) { hyu->sprzoff = FixedMul(HYU_VISUAL_HEIGHT * hyu->scale, - sineofs + FINESINE(a >> ANGLETOFINESHIFT)); + sineofs + FINESINE(a >> ANGLETOFINESHIFT)) * P_MobjFlip(hyu); + + if (P_IsObjectFlipped(hyu)) + hyu->sprzoff -= hyu->height; } static void @@ -155,11 +158,6 @@ project_hyudoro (mobj_t *hyu) hyu->z = P_GetZAt(center->standingslope, hyu->x, hyu->y, P_GetMobjGround(center)); - - if (P_IsObjectFlipped(hyu)) - { - hyu->z -= hyu->height; - } } static void