diff --git a/source/core/rendering/scene/hw_bunchdrawer.cpp b/source/core/rendering/scene/hw_bunchdrawer.cpp index a895a8ba0..f1323c4f2 100644 --- a/source/core/rendering/scene/hw_bunchdrawer.cpp +++ b/source/core/rendering/scene/hw_bunchdrawer.cpp @@ -39,6 +39,7 @@ #include "automap.h" #include "gamefuncs.h" #include "hw_portal.h" +#include "gamestruct.h" //========================================================================== @@ -446,6 +447,7 @@ void BunchDrawer::ProcessSector(int sectnum) { if ((spr->cstat & (CSTAT_SPRITE_ONE_SIDED | CSTAT_SPRITE_ALIGNMENT_MASK)) != (CSTAT_SPRITE_ONE_SIDED | CSTAT_SPRITE_ALIGNMENT_WALL) || (r_voxels && tiletovox[spr->picnum] >= 0 && voxmodels[tiletovox[spr->picnum]]) || + (r_voxels && gi->Voxelize(spr->picnum)) || DMulScale(bcos(spr->ang), -sx, bsin(spr->ang), -sy, 6) > 0) if (renderAddTsprite(di->tsprite, di->spritesortcnt, z, sectnum)) break;