From cea8b9566e9ea4183a9aa6b6adb7f96469f5f4a3 Mon Sep 17 00:00:00 2001 From: JugadorXEI Date: Wed, 22 May 2024 21:19:00 +0200 Subject: [PATCH] Fix super flicky bobbing not being flipped, as well as the object itself --- src/objects/super-flicky.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/objects/super-flicky.cpp b/src/objects/super-flicky.cpp index 9cd482268..aa5e659f4 100644 --- a/src/objects/super-flicky.cpp +++ b/src/objects/super-flicky.cpp @@ -93,7 +93,10 @@ sine_bob // slightly modified from objects/hyudoro.c hyu->sprzoff = FixedMul(kBobHeight, - sineofs + FINESINE(a >> ANGLETOFINESHIFT)); + sineofs + FINESINE(a >> ANGLETOFINESHIFT)) * P_MobjFlip(hyu); + + if (P_IsObjectFlipped(hyu)) + hyu->sprzoff -= hyu->height; } void @@ -303,6 +306,7 @@ struct Flicky : mobj_t color = super_color(); } + K_FlipFromObject(this, source()); bob_in_place(this, phase() * 8, 32); }