mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- use a global constant for the transparent palette index instead of hardcoding it to the 255 literal everywhere.
- added the needed glue to allow palettecontainer.cpp to compile.
This commit is contained in:
parent
ac07af7028
commit
4d1d90d712
9 changed files with 140 additions and 8 deletions
|
@ -637,7 +637,7 @@ static int32_t loadvox(const char *filnam)
|
|||
fil.Read(tbuf, voxsiz.z);
|
||||
|
||||
for (bssize_t z=voxsiz.z-1; z>=0; z--)
|
||||
if (tbuf[z] != 255)
|
||||
if (tbuf[z] != TRANSPARENT_INDEX)
|
||||
{
|
||||
const int32_t i = j+z;
|
||||
vbit[i>>5] |= (1<<SHIFTMOD32(i));
|
||||
|
@ -652,7 +652,7 @@ static int32_t loadvox(const char *filnam)
|
|||
|
||||
for (bssize_t z=0; z<voxsiz.z; z++)
|
||||
{
|
||||
if (tbuf[z] == 255)
|
||||
if (tbuf[z] == TRANSPARENT_INDEX)
|
||||
continue;
|
||||
|
||||
if (!x || !y || !z || x == voxsiz.x-1 || y == voxsiz.y-1 || z == voxsiz.z-1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue