- fixed the decal translation handler truncated the translation ID

This was yet another of those old misguided 16 bit space 'optimizations'.
This commit is contained in:
Christoph Oelckers 2018-12-21 11:14:18 +01:00 committed by drfrag
parent 89a17d4257
commit 15f78039c3

View file

@ -94,7 +94,7 @@ struct FDecalLib::FTranslation
uint32_t StartColor, EndColor;
FTranslation *Next;
uint16_t Index;
uint32_t Index;
};
struct FDecalAnimator
@ -1119,7 +1119,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)