Fix super flicky bobbing not being flipped, as well as the object itself

This commit is contained in:
JugadorXEI 2024-05-22 21:19:00 +02:00
parent 4c7ec4bae0
commit cea8b9566e

View file

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