skiping translation if flag 'h' exist in language file

svn-id: r5274
This commit is contained in:
Paweł Kołodziejski 2002-10-23 07:16:42 +00:00
parent 99ec620c58
commit 24510afc69

View File

@ -1162,13 +1162,24 @@ void Scumm::translateText(char * text, char * trans_buff) {
sprintf(num_s, "%ld", num);
char * buf = _languageBuffer;
pos = 0;
// determine is file encoded
if (*buf == 'e') {
enc = 0x13;
pos = 1;
pos += 3;
} else {
enc = 0;
pos = 0;
}
// skip translation if flag 'h' exist
if (*(buf + pos) == 'h') {
pos += 3;
char *pointer = strchr((char*)text + 1, '/');
if (pointer != NULL)
strcpy(trans_buff, pointer + 1);
else
strcpy(trans_buff, "");
return;
}
for(;;) {