Changed zero RenderRadius logic - negative values now used for 'no rendering', restored old logic with max(radius, renderradius)

This commit is contained in:
ZZYZX 2016-12-25 13:40:21 +02:00
parent 40a180c15f
commit 44c19b5ad9
2 changed files with 4 additions and 4 deletions

View File

@ -6651,9 +6651,9 @@ void P_CreateSecNodeList(AActor *thing)
void P_LinkRenderSectors(AActor* thing)
{
// if this thing has RenderStyle None, don't link it anywhere.
if (thing->renderradius != 0)
if (thing->renderradius >= 0)
{
FBoundingBox box(thing->X(), thing->Y(), thing->renderradius > 0 ? thing->renderradius : thing->renderradius);
FBoundingBox box(thing->X(), thing->Y(), std::max(thing->radius, thing->renderradius));
FBlockLinesIterator it(box);
line_t *ld;
@ -6702,7 +6702,7 @@ void P_LinkRenderSectors(AActor* thing)
void P_UnlinkRenderSectors(AActor* thing)
{
if (thing->renderradius != 0)
if (thing->renderradius >= 0)
{
if (thing->touching_render_sectors)
{

View File

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