Ticket #9202: semicolons.diff

File semicolons.diff, 1.9 KB (added by SF/jestar_jokin, 13 years ago)

just semicolon fix, patched against svn54905, generated with TortoiseSVN

  • descumm.cpp

     
    681681        } else {
    682682                if (!(args & ANOLASTPAREN)) {
    683683                buf = strecpy(buf, ")");
    684         }
     684                }
    685685                if (!(args & ANOENDSEMICOLON) && buf[(strlen(buf) - 1)] != ';') {
    686686                        buf = strecpy(buf, ";");
    687687                }
     
    19341934        case 0xF9:{
    19351935                        buf = strecpy(buf, "doSentence(");
    19361936                        if (!(opcode & 0x80) && *g_scriptCurPos == 0xFC) {
    1937                                 strcpy(buf, "STOP)");
     1937                                strcpy(buf, "STOP);");
    19381938                                g_scriptCurPos++;
    19391939                        } else if (!(opcode & 0x80) && *g_scriptCurPos == 0xFB) {
    1940                                 strcpy(buf, "RESET)");
     1940                                strcpy(buf, "RESET);");
    19411941                                g_scriptCurPos++;
    19421942                        } else {
    19431943                                do_tok(buf, "",
     
    23132313                        int i;
    23142314                        char first = 1;
    23152315
    2316                         buf = do_tok(buf, "setVarRange", A1V | ANOLASTPAREN);
     2316                        buf = do_tok(buf, "setVarRange", A1V | ANOLASTPAREN | ANOENDSEMICOLON);
    23172317                        i = get_byte();
    23182318
    23192319                        buf += sprintf(buf, ",%d,[", i);
     
    32843284                        buf = strecpy(buf, "doSentence(");
    32853285                        // FIXME: this is not exactly what ScummVM does...
    32863286                        if (!(opcode & 0x80) && (*g_scriptCurPos == 0xFE)) {
    3287                                 strcpy(buf, "STOP)");
     3287                                strcpy(buf, "STOP);");
    32883288                                g_scriptCurPos++;
    32893289                        } else {
    32903290                                do_tok(buf, "",
     
    33673367        case 0xFF:
    33683368                buf =
    33693369                        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);
    33713371                opcode = get_byte();
    33723372                do_tok(buf, NULL,
    33733373                                         ASTARTCOMMA | ANOFIRSTPAREN | ((opcode & 0x80) ? A1V : A1W) |
     
    35103510                        int i;
    35113511                        char first = 1;
    35123512
    3513                         buf = do_tok(buf, "setVarRange", A1V | ANOLASTPAREN);
     3513                        buf = do_tok(buf, "setVarRange", A1V | ANOLASTPAREN | ANOENDSEMICOLON);
    35143514                        i = get_byte();
    35153515
    35163516                        buf += sprintf(buf, ",%d,[", i);