From 1c3538d77e17cc41e0e8e24d570bcb39969df432 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Mon, 16 Sep 2024 22:53:01 +0200 Subject: [PATCH] Draw the particles --- src/rendering/hwrenderer/scene/hw_drawinfo.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/rendering/hwrenderer/scene/hw_drawinfo.cpp b/src/rendering/hwrenderer/scene/hw_drawinfo.cpp index 5129bb326..22eac85c8 100644 --- a/src/rendering/hwrenderer/scene/hw_drawinfo.cpp +++ b/src/rendering/hwrenderer/scene/hw_drawinfo.cpp @@ -527,6 +527,16 @@ void HWDrawInfo::CreateScene(bool drawpsprites, FRenderState& state) sprite.Process(this, state, thing, thing->Sector, in_area, false); } + // Draw particles + for (uint16_t i = level.ActiveParticles; i != NO_PARTICLE; i = level.Particles[i].tnext) + { + if (Level->Particles[i].subsector) + { + HWSprite sprite; + sprite.ProcessParticle(this, state, &Level->Particles[i], Level->Particles[i].subsector->sector, nullptr); + } + } + // Process all the sprites on the current portal's back side which touch the portal. if (mCurrentPortal != nullptr) mCurrentPortal->RenderAttached(this, state);