Fix warnings

git-svn-id: https://svn.eduke32.com/eduke32@5299 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-07-17 00:12:33 +00:00
parent f6d07d48ae
commit 4bd82ba0ea
1 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@ static int32_t Defs_ImportTileFromTexture(char const * const fn, int32_t const t
#ifdef USE_OPENGL #ifdef USE_OPENGL
if (istexture) 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 #endif
return 1; return 1;
@ -292,7 +292,7 @@ static int32_t Defs_ImportTileFromTexture(char const * const fn, int32_t const t
#ifdef USE_OPENGL #ifdef USE_OPENGL
if (istexture) 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 #else
UNREFERENCED_PARAMETER(istexture); UNREFERENCED_PARAMETER(istexture);
#endif #endif