From b7b9fdabae0f4aee362f013bf5ba0462d0bddbb9 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sat, 28 Dec 2024 09:03:39 -0500 Subject: [PATCH] Fix transparency issues --- src/Sourcefile | 2 +- src/r_segs.cpp | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Sourcefile b/src/Sourcefile index 21ab8e33d..fa2cf16c6 100644 --- a/src/Sourcefile +++ b/src/Sourcefile @@ -63,7 +63,7 @@ r_bsp.cpp r_data.c r_draw.c r_fps.c -r_main.c +r_main.cpp r_plane.cpp r_segs.cpp r_skins.c diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 36a02bbf4..0a8b01ba2 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -143,9 +143,7 @@ static void R_Render2sidedMultiPatchColumn(column_t *column, column_t *brightmap transnum_t R_GetLinedefTransTable(fixed_t alpha) { - transnum_t transnum = NUMTRANSMAPS; // Send back NUMTRANSMAPS for none - - if (alpha > 0 && alpha < FRACUNIT) + if (alpha >= FRACUNIT) { return static_cast(0); } @@ -157,8 +155,6 @@ transnum_t R_GetLinedefTransTable(fixed_t alpha) { return static_cast((20*(FRACUNIT - alpha - 1) + FRACUNIT) >> (FRACBITS+1)); } - - return transnum; } static inline boolean R_OverflowTest(void)