mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- fixed transparent color.
This commit is contained in:
parent
a3e6829817
commit
5e93b8f3e7
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
|||
#ifndef build_h_
|
||||
#define build_h_
|
||||
|
||||
#define TRANSPARENT_INDEX 255
|
||||
#define TRANSPARENT_INDEX 0
|
||||
|
||||
static_assert('\xff' == 255, "Char must be unsigned!");
|
||||
|
||||
|
|
|
@ -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] != TRANSPARENT_INDEX)
|
||||
if (tbuf[z] != 255)
|
||||
{
|
||||
const int32_t i = j+z;
|
||||
vbit[i>>5] |= (1<<SHIFTMOD32(i));
|
||||
|
|
Loading…
Reference in a new issue