From 9de58140633a3ccdb61b4aef5e8cd95ab192d15f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 3 Jan 2020 22:05:00 +0100 Subject: [PATCH] - fixed bad alpha setting for rotatesprite calls. --- source/common/2d/v_2ddrawer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/common/2d/v_2ddrawer.cpp b/source/common/2d/v_2ddrawer.cpp index e88f5bea9..642887312 100644 --- a/source/common/2d/v_2ddrawer.cpp +++ b/source/common/2d/v_2ddrawer.cpp @@ -659,6 +659,7 @@ void F2DDrawer::rotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16 auto ptr = &mVertices[dg.mVertIndex]; float drawpoly_alpha = daalpha * (1.0f / 255.0f); float alpha = float_trans(method, dablend) * (1.f - drawpoly_alpha); // Hmmm... + p.a = (uint8_t)(alpha * 255); vec2_16_t const siz = tilesiz[picnum]; vec2_16_t ofs = { 0, 0 };