mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-15 17:21:34 +00:00
Don't scale player arrows in splitscreen
This commit is contained in:
parent
ac521015ff
commit
506c70ce27
1 changed files with 7 additions and 4 deletions
11
src/p_mobj.c
11
src/p_mobj.c
|
@ -6835,10 +6835,13 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
}
|
}
|
||||||
P_SetThingPosition(mobj);
|
P_SetThingPosition(mobj);
|
||||||
|
|
||||||
scale += FixedMul(FixedDiv(abs(P_AproxDistance(players[displayplayer].mo->x-mobj->target->x,
|
if (!splitscreen)
|
||||||
players[displayplayer].mo->y-mobj->target->y)), RING_DIST), mobj->target->scale);
|
{
|
||||||
if (scale > 16*FRACUNIT)
|
scale += FixedMul(FixedDiv(abs(P_AproxDistance(players[displayplayer].mo->x-mobj->target->x,
|
||||||
scale = 16*FRACUNIT;
|
players[displayplayer].mo->y-mobj->target->y)), RING_DIST), mobj->target->scale);
|
||||||
|
if (scale > 16*FRACUNIT)
|
||||||
|
scale = 16*FRACUNIT;
|
||||||
|
}
|
||||||
mobj->destscale = scale;
|
mobj->destscale = scale;
|
||||||
|
|
||||||
if (!mobj->tracer)
|
if (!mobj->tracer)
|
||||||
|
|
Loading…
Reference in a new issue