From a44e63babdc80701ec2e40b6e1165d6e049aaa3b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 21 Dec 2018 11:14:18 +0100 Subject: [PATCH] - fixed the decal translation handler truncated the translation ID This was yet another of those old misguided 16 bit space 'optimizations'. --- src/decallib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decallib.cpp b/src/decallib.cpp index 71ac662d3..945fc9a09 100644 --- a/src/decallib.cpp +++ b/src/decallib.cpp @@ -90,7 +90,7 @@ struct FDecalLib::FTranslation uint32_t StartColor, EndColor; FTranslation *Next; - uint16_t Index; + uint32_t Index; }; struct FDecalAnimator @@ -1115,7 +1115,7 @@ FDecalLib::FTranslation::FTranslation (uint32_t start, uint32_t end) table[i] = ColorMatcher.Pick (ri >> 24, gi >> 24, bi >> 24); } table[0] = table[1]; - Index = (uint16_t)TRANSLATION(TRANSLATION_Decals, tablei >> 8); + Index = (uint32_t)TRANSLATION(TRANSLATION_Decals, tablei >> 8); } FDecalLib::FTranslation *FDecalLib::FTranslation::LocateTranslation (uint32_t start, uint32_t end)