mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Reverted STYLE_None change to P_LinkRenderSectors, implemented zero RenderRadius that effectively disables rendering of an actor entirely
This commit is contained in:
parent
98657f6844
commit
fcd8a0ce92
2 changed files with 3 additions and 3 deletions
|
@ -6651,10 +6651,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])
|
||||
if (thing->renderradius == 0)
|
||||
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);
|
||||
line_t *ld;
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ class Actor : Thinker native
|
|||
Health DEFAULT_HEALTH;
|
||||
Reactiontime 8;
|
||||
Radius 20;
|
||||
RenderRadius 0;
|
||||
RenderRadius -1;
|
||||
Height 16;
|
||||
Mass 100;
|
||||
RenderStyle 'Normal';
|
||||
|
|
Loading…
Reference in a new issue