From 2bf5933923aba93dbfe34c1458e8c471ed26136c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 19 Sep 2020 00:06:07 +0200 Subject: [PATCH] - fixed weapon sprite translation index when in paletted mode. --- source/glbackend/glbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glbackend/glbackend.cpp b/source/glbackend/glbackend.cpp index 778dbb570..d48cbd8c6 100644 --- a/source/glbackend/glbackend.cpp +++ b/source/glbackend/glbackend.cpp @@ -558,7 +558,7 @@ void hud_drawsprite(double sx, double sy, int z, double a, int picnum, int dasha DrawTexture(&twodpsp, pick.texture, sx, sy, DTA_ScaleX, dz, DTA_ScaleY, dz, DTA_Color, shadeToLight(dashade), - DTA_TranslationIndex, pick.translation, + DTA_TranslationIndex, pick.translation & 0x7fffffff, DTA_ViewportX, windowxy1.x, DTA_ViewportY, windowxy1.y, DTA_ViewportWidth, windowxy2.x - windowxy1.x + 1, DTA_ViewportHeight, windowxy2.y - windowxy1.y + 1, DTA_FullscreenScale, (dastat & RS_STRETCH)? FSMode_ScaleToScreen: FSMode_ScaleToHeight, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200,