mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
polymost_scansector(): avoid using a culling method not designed for voxels when handling 1-sided wall aligned sprites that have voxel replacements
git-svn-id: https://svn.eduke32.com/eduke32@7854 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
83e863422a
commit
a0231cf90c
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue