From ecd2e682bc7d582dd7f46de4bacce743c3994dea Mon Sep 17 00:00:00 2001 From: staphen Date: Wed, 12 May 2021 17:59:12 -0400 Subject: [PATCH] Check bBlendedTransparancy before calling GenerateBlendedLookupTable() at the end of Poisoned Water Supply quest. --- Source/palette.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/palette.cpp b/Source/palette.cpp index 18ac26c99..fa493a5b2 100644 --- a/Source/palette.cpp +++ b/Source/palette.cpp @@ -381,7 +381,8 @@ void palette_update_quest_palette(int n) } ApplyGamma(system_palette, logical_palette, 32); palette_update(); - GenerateBlendedLookupTable(logical_palette, 1, 31, 32 - n); // Possible optimization would be to only update color 0 as only the UI can overlap with transparency in this quest + if (sgOptions.Graphics.bBlendedTransparancy) + GenerateBlendedLookupTable(logical_palette, 1, 31, 32 - n); // Possible optimization would be to only update color 0 as only the UI can overlap with transparency in this quest } } // namespace devilution