Skip to content

Commit

Permalink
STYLE_None actors are no more subject to P_LinkRenderSectors
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZYZX committed Dec 25, 2016
1 parent 87b23d1 commit 98657f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/p_map.cpp
Expand Up @@ -6650,6 +6650,10 @@ void P_CreateSecNodeList(AActor *thing)

void P_LinkRenderSectors(AActor* thing)
{
// if this thing has RenderStyle None, don't link it anywhere.
if (thing->RenderStyle == LegacyRenderStyles[STYLE_None])
return;

FBoundingBox box(thing->X(), thing->Y(), std::max(thing->renderradius, thing->radius));
FBlockLinesIterator it(box);
line_t *ld;
Expand Down

0 comments on commit 98657f6

Please sign in to comment.