Don't scale player arrows in splitscreen

This commit is contained in:
TehRealSalt 2018-10-02 01:28:48 -04:00
parent ac521015ff
commit 506c70ce27

View file

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