From 8b63908820b55f92867cbdf2e71f4a50537c60d1 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 1 Apr 2021 12:41:04 +0100 Subject: [PATCH] More precise translucency amount picking. --- src/r_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_draw.c b/src/r_draw.c index 403631be8..db3fdd7bc 100644 --- a/src/r_draw.c +++ b/src/r_draw.c @@ -191,7 +191,7 @@ void R_GenerateBlendTables(void) for (i = 0; i <= 9; i++) { const size_t offs = (0x10000 * i); - const UINT8 alpha = TRANSTAB_AMTMUL10 * (10-i); + const UINT8 alpha = (TRANSTAB_AMTMUL10 * ((float)(10-i))); R_GenerateTranslucencyTable(blendtables[blendtab_add] + offs, AST_ADD, alpha); R_GenerateTranslucencyTable(blendtables[blendtab_subtract] + offs, AST_SUBTRACT, alpha);