GL renderer now uses RenderRadius links too

This commit is contained in:
ZZYZX 2016-12-26 00:23:05 +02:00 committed by Christoph Oelckers
parent 19856d6ccb
commit 6f16597668

View file

@ -363,8 +363,13 @@ static inline void RenderThings(subsector_t * sub, sector_t * sector)
SetupSprite.Clock();
sector_t * sec=sub->sector;
// Handle all things in sector.
for (AActor * thing = sec->thinglist; thing; thing = thing->snext)
if (sec->touching_render_things)
{
for (auto thing : *sec->touching_render_things)
{
if (thing->validcount == validcount) continue;
thing->validcount = validcount;
FIntCVar *cvar = thing->GetClass()->distancecheck;
if (cvar != NULL && *cvar >= 0)
{
@ -378,6 +383,7 @@ static inline void RenderThings(subsector_t * sub, sector_t * sector)
GLRenderer->ProcessSprite(thing, sector, false);
}
}
for (msecnode_t *node = sec->render_thinglist; node; node = node->m_snext)
{
AActor *thing = node->m_thing;