- Backported VisibleToTeam and VisibleToPlayerClass from Skulltag with some modifications.
SVN r3290 (trunk)
This commit is contained in:
parent
bb1b825f24
commit
c013e72caa
4 changed files with 58 additions and 1 deletions
|
|
@ -495,7 +495,8 @@ void R_ProjectSprite (AActor *thing, int fakeside, F3DFloor *fakefloor, F3DFloor
|
|||
// Don't waste time projecting sprites that are definitely not visible.
|
||||
if (thing == NULL ||
|
||||
(thing->renderflags & RF_INVISIBLE) ||
|
||||
!thing->RenderStyle.IsVisible(thing->alpha))
|
||||
!thing->RenderStyle.IsVisible(thing->alpha) ||
|
||||
!thing->IsVisibleToPlayer())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue