- added a few missing voxel checks.

This commit is contained in:
Christoph Oelckers 2020-02-02 20:48:40 +01:00
parent ca21852945
commit df36f27b32

View file

@ -979,7 +979,7 @@ JAnalyzeSprites(tspriteptr_t tspr)
//if (bVoxelsOn)
if (r_voxels)
{
if (aVoxelArray[tspr->picnum].Voxel >= 0)
if (aVoxelArray[tspr->picnum].Voxel >= 0 && !(spriteext[tspr->owner].flags & SPREXT_NOTMD))
{
// Turn on voxels
tspr->picnum = aVoxelArray[tspr->picnum].Voxel; // Get the voxel number
@ -992,6 +992,12 @@ JAnalyzeSprites(tspriteptr_t tspr)
{
case 764: // Gun barrel
if (!r_voxels || (spriteext[tspr->owner].flags & SPREXT_NOTMD))
{
tspr->cstat |= 16;
break;
}
if (aVoxelArray[tspr->picnum].Voxel >= 0)
{
// Turn on voxels