mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user