Draw the particles
This commit is contained in:
parent
c3f65fecdb
commit
1c3538d77e
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue