Possible fix for bug #1979086 - "DRASCULA: Wrong language detection(?) and crash"

svn-id: r32728
This commit is contained in:
Filippos Karapetis 2008-06-17 21:52:58 +00:00
parent cca355acd7
commit 8541fb5148
3 changed files with 7 additions and 7 deletions

View File

@ -1669,7 +1669,7 @@ void DrasculaEngine::animation_12_5() {
const int frusky_x[] = {100, 139, 178, 217, 100, 178, 217, 139, 100, 139};
const int elfrusky_x[] = {1, 68, 135, 1, 68, 135, 1, 68, 135, 68, 1, 135, 68, 135, 68};
int color, component;
char fade;
signed char fade;
playMusic(26);
updateRoom();

View File

@ -245,7 +245,7 @@ public:
void loadPic(const char *NamePcc, byte *targetSurface, int colorCount = 1);
typedef char DacPalette256[256][3];
typedef signed char DacPalette256[256][3];
void setRGB(byte *pal, int plt);
void assignDefaultPalette();
@ -397,7 +397,7 @@ public:
void playFLI(const char *filefli, int vel);
void fadeFromBlack(int fadeSpeed);
void fadeToBlack(int fadeSpeed);
char adjustToVGA(char value);
signed char adjustToVGA(signed char value);
void color_abc(int cl);
void centerText(const char *,int,int);
void playSound(int soundNum);

View File

@ -87,12 +87,12 @@ void DrasculaEngine::color_abc(int cl) {
setPalette((byte *)&gamePalette);
}
char DrasculaEngine::adjustToVGA(char value) {
signed char DrasculaEngine::adjustToVGA(signed char value) {
return (value & 0x3F) * (value > 0);
}
void DrasculaEngine::fadeToBlack(int fadeSpeed) {
char fade;
signed char fade;
unsigned int color, component;
DacPalette256 palFade;
@ -110,7 +110,7 @@ void DrasculaEngine::fadeToBlack(int fadeSpeed) {
}
void DrasculaEngine::fadeFromBlack(int fadeSpeed) {
char fade;
signed char fade;
unsigned int color, component;
DacPalette256 palFade;
@ -186,7 +186,7 @@ void DrasculaEngine::setDarkPalette() {
}
void DrasculaEngine::setPaletteBase(int darkness) {
char fade;
signed char fade;
unsigned int color, component;
for (fade = darkness; fade >= 0; fade--) {