mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Changed zero RenderRadius logic - negative values now used for 'no rendering', restored old logic with max(radius, renderradius)
This commit is contained in:
parent
40a180c15f
commit
44c19b5ad9
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue