From b263d38ec9cd430d750e11da3ddd3dfafae6cece Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 11 Feb 2022 20:38:48 -0800 Subject: [PATCH] CHEWY: Re-introduce content of check_shad method The NoShadow flag was never set, which means that although the flag itself could be removed, the code that was executed when it was false still needed to be kept --- engines/chewy/main.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/engines/chewy/main.cpp b/engines/chewy/main.cpp index f9bea6d8e15..6294eea5588 100644 --- a/engines/chewy/main.cpp +++ b/engines/chewy/main.cpp @@ -1195,6 +1195,35 @@ void check_shad(int16 g_idx, int16 mode) { 45, 3, 28, 45, 6, 32 }; + + switch (g_idx) { + case 1: + if (mode) + _G(out)->set_teilpalette(PAL_1, 1, 11); + palcopy(pal, PAL_1, 0, 0, 12); + break; + + case 2: + if (mode) + _G(out)->set_teilpalette(PAL_2, 1, 11); + palcopy(pal, PAL_2, 0, 0, 12); + break; + + case 3: + if (mode) + _G(out)->set_teilpalette(PAL_3, 1, 11); + palcopy(pal, PAL_3, 0, 0, 12); + break; + + case 4: + if (mode) + _G(out)->set_teilpalette(PAL_0, 1, 11); + palcopy(pal, PAL_0, 0, 0, 12); + break; + + default: + break; + } } void print_shad(int16 x, int16 y, int16 fcol, int16 bcol, int16 scol, int16 scr_w, char *txtptr) {