mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Fix hyudoro being incorrectly flipped during roaming status
This commit is contained in:
parent
c275f9b3cb
commit
dbac449272
1 changed files with 4 additions and 6 deletions
|
|
@ -111,7 +111,10 @@ sine_bob
|
||||||
fixed_t sineofs)
|
fixed_t sineofs)
|
||||||
{
|
{
|
||||||
hyu->sprzoff = FixedMul(HYU_VISUAL_HEIGHT * hyu->scale,
|
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
|
static void
|
||||||
|
|
@ -155,11 +158,6 @@ project_hyudoro (mobj_t *hyu)
|
||||||
|
|
||||||
hyu->z = P_GetZAt(center->standingslope, hyu->x, hyu->y,
|
hyu->z = P_GetZAt(center->standingslope, hyu->x, hyu->y,
|
||||||
P_GetMobjGround(center));
|
P_GetMobjGround(center));
|
||||||
|
|
||||||
if (P_IsObjectFlipped(hyu))
|
|
||||||
{
|
|
||||||
hyu->z -= hyu->height;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue