Reverted STYLE_None change to P_LinkRenderSectors, implemented zero RenderRadius that effectively disables rendering of an actor entirely

This commit is contained in:
ZZYZX 2016-12-25 13:35:03 +02:00
parent 98657f6844
commit fcd8a0ce92
2 changed files with 3 additions and 3 deletions

View file

@ -6651,10 +6651,10 @@ void P_CreateSecNodeList(AActor *thing)
void P_LinkRenderSectors(AActor* thing) void P_LinkRenderSectors(AActor* thing)
{ {
// if this thing has RenderStyle None, don't link it anywhere. // if this thing has RenderStyle None, don't link it anywhere.
if (thing->RenderStyle == LegacyRenderStyles[STYLE_None]) if (thing->renderradius == 0)
return; return;
FBoundingBox box(thing->X(), thing->Y(), std::max(thing->renderradius, thing->radius)); FBoundingBox box(thing->X(), thing->Y(), thing->renderradius > 0 ? thing->renderradius : thing->renderradius);
FBlockLinesIterator it(box); FBlockLinesIterator it(box);
line_t *ld; line_t *ld;

View file

@ -202,7 +202,7 @@ class Actor : Thinker native
Health DEFAULT_HEALTH; Health DEFAULT_HEALTH;
Reactiontime 8; Reactiontime 8;
Radius 20; Radius 20;
RenderRadius 0; RenderRadius -1;
Height 16; Height 16;
Mass 100; Mass 100;
RenderStyle 'Normal'; RenderStyle 'Normal';