Ticket #9202: semicolons.diff
File semicolons.diff, 1.9 KB (added by , 13 years ago) |
---|
-
descumm.cpp
681 681 } else { 682 682 if (!(args & ANOLASTPAREN)) { 683 683 buf = strecpy(buf, ")"); 684 }684 } 685 685 if (!(args & ANOENDSEMICOLON) && buf[(strlen(buf) - 1)] != ';') { 686 686 buf = strecpy(buf, ";"); 687 687 } … … 1934 1934 case 0xF9:{ 1935 1935 buf = strecpy(buf, "doSentence("); 1936 1936 if (!(opcode & 0x80) && *g_scriptCurPos == 0xFC) { 1937 strcpy(buf, "STOP) ");1937 strcpy(buf, "STOP);"); 1938 1938 g_scriptCurPos++; 1939 1939 } else if (!(opcode & 0x80) && *g_scriptCurPos == 0xFB) { 1940 strcpy(buf, "RESET) ");1940 strcpy(buf, "RESET);"); 1941 1941 g_scriptCurPos++; 1942 1942 } else { 1943 1943 do_tok(buf, "", … … 2313 2313 int i; 2314 2314 char first = 1; 2315 2315 2316 buf = do_tok(buf, "setVarRange", A1V | ANOLASTPAREN );2316 buf = do_tok(buf, "setVarRange", A1V | ANOLASTPAREN | ANOENDSEMICOLON); 2317 2317 i = get_byte(); 2318 2318 2319 2319 buf += sprintf(buf, ",%d,[", i); … … 3284 3284 buf = strecpy(buf, "doSentence("); 3285 3285 // FIXME: this is not exactly what ScummVM does... 3286 3286 if (!(opcode & 0x80) && (*g_scriptCurPos == 0xFE)) { 3287 strcpy(buf, "STOP) ");3287 strcpy(buf, "STOP);"); 3288 3288 g_scriptCurPos++; 3289 3289 } else { 3290 3290 do_tok(buf, "", … … 3367 3367 case 0xFF: 3368 3368 buf = 3369 3369 do_tok(buf, "drawBox", 3370 ((opcode & 0x80) ? A1V : A1W) | ((opcode & 0x40) ? A2V : A2W) | ANOLASTPAREN );3370 ((opcode & 0x80) ? A1V : A1W) | ((opcode & 0x40) ? A2V : A2W) | ANOLASTPAREN | ANOENDSEMICOLON); 3371 3371 opcode = get_byte(); 3372 3372 do_tok(buf, NULL, 3373 3373 ASTARTCOMMA | ANOFIRSTPAREN | ((opcode & 0x80) ? A1V : A1W) | … … 3510 3510 int i; 3511 3511 char first = 1; 3512 3512 3513 buf = do_tok(buf, "setVarRange", A1V | ANOLASTPAREN );3513 buf = do_tok(buf, "setVarRange", A1V | ANOLASTPAREN | ANOENDSEMICOLON); 3514 3514 i = get_byte(); 3515 3515 3516 3516 buf += sprintf(buf, ",%d,[", i);