- Backported VisibleToTeam and VisibleToPlayerClass from Skulltag with some modifications.

SVN r3290 (trunk)
This commit is contained in:
Braden Obrzut 2011-09-08 01:28:26 +00:00
commit c013e72caa
4 changed files with 58 additions and 1 deletions

View file

@ -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;
}