diff --git a/polymer/eduke32/build/src/defs.c b/polymer/eduke32/build/src/defs.c index 1d820dce4..9bd0c053f 100644 --- a/polymer/eduke32/build/src/defs.c +++ b/polymer/eduke32/build/src/defs.c @@ -275,7 +275,7 @@ static int32_t Defs_ImportTileFromTexture(char const * const fn, int32_t const t #ifdef USE_OPENGL if (istexture) - hicsetsubsttex(tile, 0, fn, alphacut, 1.0f, 1.0f, 1.0f, 1.0f, HICR_NOSAVE|HICR_NOCOMPRESS); + hicsetsubsttex(tile, 0, fn, (float)alphacut / 255.f, 1.0f, 1.0f, 1.0f, 1.0f, HICR_NOSAVE|HICR_NOCOMPRESS); #endif return 1; @@ -292,7 +292,7 @@ static int32_t Defs_ImportTileFromTexture(char const * const fn, int32_t const t #ifdef USE_OPENGL if (istexture) - hicsetsubsttex(tile, 0, fn, alphacut, 1.0f, 1.0f, 1.0, 1.0, HICR_NOSAVE|HICR_NOCOMPRESS); + hicsetsubsttex(tile, 0, fn, (float) alphacut / 255.f, 1.0f, 1.0f, 1.0, 1.0, HICR_NOSAVE|HICR_NOCOMPRESS); #else UNREFERENCED_PARAMETER(istexture); #endif