mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- added a few missing voxel checks.
This commit is contained in:
parent
ca21852945
commit
df36f27b32
1 changed files with 7 additions and 1 deletions
|
@ -979,7 +979,7 @@ JAnalyzeSprites(tspriteptr_t tspr)
|
||||||
//if (bVoxelsOn)
|
//if (bVoxelsOn)
|
||||||
if (r_voxels)
|
if (r_voxels)
|
||||||
{
|
{
|
||||||
if (aVoxelArray[tspr->picnum].Voxel >= 0)
|
if (aVoxelArray[tspr->picnum].Voxel >= 0 && !(spriteext[tspr->owner].flags & SPREXT_NOTMD))
|
||||||
{
|
{
|
||||||
// Turn on voxels
|
// Turn on voxels
|
||||||
tspr->picnum = aVoxelArray[tspr->picnum].Voxel; // Get the voxel number
|
tspr->picnum = aVoxelArray[tspr->picnum].Voxel; // Get the voxel number
|
||||||
|
@ -992,6 +992,12 @@ JAnalyzeSprites(tspriteptr_t tspr)
|
||||||
{
|
{
|
||||||
case 764: // Gun barrel
|
case 764: // Gun barrel
|
||||||
|
|
||||||
|
if (!r_voxels || (spriteext[tspr->owner].flags & SPREXT_NOTMD))
|
||||||
|
{
|
||||||
|
tspr->cstat |= 16;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (aVoxelArray[tspr->picnum].Voxel >= 0)
|
if (aVoxelArray[tspr->picnum].Voxel >= 0)
|
||||||
{
|
{
|
||||||
// Turn on voxels
|
// Turn on voxels
|
||||||
|
|
Loading…
Reference in a new issue