- fixed transparent color.

This commit is contained in:
Christoph Oelckers 2020-05-28 08:31:08 +02:00
parent a3e6829817
commit 5e93b8f3e7
2 changed files with 2 additions and 2 deletions

View file

@ -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!");

View file

@ -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));