diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index a9c81ab6b..cffd8a998 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -4971,9 +4971,13 @@ void polymost_scansector(int32_t sectnum) vec2_t const s = { spr->x-globalposx, spr->y-globalposy }; - if ((spr->cstat&48) || (usemodels && tile2model[spr->picnum].modelid>=0) || ((s.x * gcosang) + (s.y * gsinang) > 0)) + if ((spr->cstat&48) || + (usemodels && tile2model[spr->picnum].modelid>=0) || + ((s.x * gcosang) + (s.y * gsinang) > 0)) { - if ((spr->cstat&(64+48))!=(64+16) || dmulscale6(sintable[(spr->ang+512)&2047],-s.x, sintable[spr->ang&2047],-s.y) > 0) + if ((spr->cstat&(64+48))!=(64+16) || + (usevoxels && tiletovox[spr->picnum] >= 0 && voxmodels[tiletovox[spr->picnum]]) || + dmulscale6(sintable[(spr->ang+512)&2047],-s.x, sintable[spr->ang&2047],-s.y) > 0) if (renderAddTsprite(z, sectnum)) break; }