mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Sanitizes cstat 16384 and documents it in build.h.
git-svn-id: https://svn.eduke32.com/eduke32@1432 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
aee30d9a58
commit
0f01a72fae
2 changed files with 4 additions and 4 deletions
|
@ -148,7 +148,8 @@ typedef struct BPACK
|
||||||
// bit 7: 1 = Real centered centering, 0 = foot center "C"
|
// bit 7: 1 = Real centered centering, 0 = foot center "C"
|
||||||
// bit 8: 1 = Blocking sprite (use with hitscan / cliptype 1) "H"
|
// bit 8: 1 = Blocking sprite (use with hitscan / cliptype 1) "H"
|
||||||
// bit 9: 1 = Transluscence reversing, 0 = normal "T"
|
// bit 9: 1 = Transluscence reversing, 0 = normal "T"
|
||||||
// bits 10-14: reserved
|
// bits 10-13: reserved
|
||||||
|
// bit 14: 1 = invisible but casts shadow
|
||||||
// bit 15: 1 = Invisible sprite, 0 = not invisible
|
// bit 15: 1 = Invisible sprite, 0 = not invisible
|
||||||
|
|
||||||
//44 bytes
|
//44 bytes
|
||||||
|
|
|
@ -952,8 +952,6 @@ void polymer_drawsprite(int32_t snum)
|
||||||
|
|
||||||
spriteplane.material.diffusemodulation[3] *= (1.0f - spriteext[tspr->owner].alpha);
|
spriteplane.material.diffusemodulation[3] *= (1.0f - spriteext[tspr->owner].alpha);
|
||||||
|
|
||||||
if (tspr->cstat & 16384) spriteplane.material.diffusemodulation[3] = 0.0f;
|
|
||||||
|
|
||||||
if (((tspr->cstat>>4) & 3) == 0)
|
if (((tspr->cstat>>4) & 3) == 0)
|
||||||
xratio = (float)(tspr->xrepeat) * 0.20f; // 32 / 160
|
xratio = (float)(tspr->xrepeat) * 0.20f; // 32 / 160
|
||||||
else
|
else
|
||||||
|
@ -2994,6 +2992,8 @@ static inline void polymer_scansprites(int16_t sectnum, spritetype* localtsprit
|
||||||
(spr->xrepeat > 0) && (spr->yrepeat > 0) &&
|
(spr->xrepeat > 0) && (spr->yrepeat > 0) &&
|
||||||
(*localspritesortcnt < MAXSPRITESONSCREEN))
|
(*localspritesortcnt < MAXSPRITESONSCREEN))
|
||||||
{
|
{
|
||||||
|
if ((spr->cstat & 16384) && (!depth || mirrors[depth-1].plane))
|
||||||
|
continue;
|
||||||
copybufbyte(spr,&localtsprite[*localspritesortcnt],sizeof(spritetype));
|
copybufbyte(spr,&localtsprite[*localspritesortcnt],sizeof(spritetype));
|
||||||
localtsprite[(*localspritesortcnt)++].owner = i;
|
localtsprite[(*localspritesortcnt)++].owner = i;
|
||||||
}
|
}
|
||||||
|
@ -3704,7 +3704,6 @@ static void polymer_getbuildmaterial(_prmaterial* material, int16_t tile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// PR_BIT_SPECULAR_MAP
|
// PR_BIT_SPECULAR_MAP
|
||||||
if (hicfindsubst(tilenum, SPECULARPAL, 0))
|
if (hicfindsubst(tilenum, SPECULARPAL, 0))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue