Also apply player fading to followers
This commit is contained in:
parent
90fdec38dc
commit
96e81b1807
1 changed files with 11 additions and 1 deletions
|
|
@ -3874,9 +3874,19 @@ fixed_t R_GetThingFade(mobj_t *thing)
|
|||
{
|
||||
fixed_t fadealpha = FRACUNIT;
|
||||
|
||||
if (!cv_playerfade.value || leveltime < starttime-(3*TICRATE) || !thing->player || thing->player == viewplayer)
|
||||
if (!cv_playerfade.value || leveltime < starttime-(3*TICRATE))
|
||||
return fadealpha;
|
||||
|
||||
if (thing->type == MT_PLAYER)
|
||||
{
|
||||
if (!thing->player || thing->player == viewplayer)
|
||||
return fadealpha;
|
||||
}
|
||||
else if (thing->type != MT_FOLLOWER && thing->type != MT_FOLLOWERBUBBLE_BACK && thing->type != MT_FOLLOWERBUBBLE_FRONT)
|
||||
{
|
||||
return fadealpha;
|
||||
}
|
||||
|
||||
const INT32 playerdist = (FixedMul((thing->x - viewx), viewcos) + FixedMul((thing->y - viewy), viewsin)) >> FRACBITS;
|
||||
const INT32 viewplayerdist = (FixedMul((viewplayer->mo->x - viewx), viewcos) + FixedMul((viewplayer->mo->y - viewy), viewsin)) >> FRACBITS;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue