mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix incorrect scale of player arrows in non-splitscreen
whoops
This commit is contained in:
parent
65f6747887
commit
ef44df0081
1 changed files with 6 additions and 6 deletions
12
src/p_mobj.c
12
src/p_mobj.c
|
|
@ -6829,10 +6829,10 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
|
|
||||||
if (!splitscreen)
|
if (!splitscreen)
|
||||||
{
|
{
|
||||||
scale += FixedMul(FixedDiv(abs(P_AproxDistance(players[displayplayer].mo->x-mobj->target->x,
|
scale = mobj->target->scale + FixedMul(FixedDiv(abs(P_AproxDistance(players[displayplayer].mo->x-mobj->target->x,
|
||||||
players[displayplayer].mo->y-mobj->target->y)), RING_DIST), mobj->target->scale);
|
players[displayplayer].mo->y-mobj->target->y)), RING_DIST), mobj->target->scale);
|
||||||
if (scale > 16*FRACUNIT)
|
if (scale > 16*mobj->target->scale)
|
||||||
scale = 16*FRACUNIT;
|
scale = 16*mobj->target->scale;
|
||||||
}
|
}
|
||||||
mobj->destscale = scale;
|
mobj->destscale = scale;
|
||||||
|
|
||||||
|
|
@ -7025,10 +7025,10 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
|
|
||||||
if (!splitscreen)
|
if (!splitscreen)
|
||||||
{
|
{
|
||||||
scale += FixedMul(FixedDiv(abs(P_AproxDistance(players[displayplayer].mo->x-mobj->target->x,
|
scale = mobj->target->scale + FixedMul(FixedDiv(abs(P_AproxDistance(players[displayplayer].mo->x-mobj->target->x,
|
||||||
players[displayplayer].mo->y-mobj->target->y)), RING_DIST), mobj->target->scale);
|
players[displayplayer].mo->y-mobj->target->y)), RING_DIST), mobj->target->scale);
|
||||||
if (scale > 16*FRACUNIT)
|
if (scale > 16*mobj->target->scale)
|
||||||
scale = 16*FRACUNIT;
|
scale = 16*mobj->target->scale;
|
||||||
}
|
}
|
||||||
mobj->destscale = scale;
|
mobj->destscale = scale;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue