Ticket #3114: bug_1678230_fix.diff

File bug_1678230_fix.diff, 728 bytes (added by SF/mthreepwood, 17 years ago)

Possible Fix

  • op_cmd.cpp

     
    12331233        if ((g_agi->getFeatures() & GF_AGIPAL) && p0 >= 101 && p0 < 110) {
    12341234                g_gfx->setAGIPal(p0);
    12351235                return;
    1236         } else
    1237                 g_gfx->shakeStart();
     1236        }
    12381237
     1238        //Disables input while shaking to prevent bug #1678230
     1239        game.inputEnabled = 0;
     1240
     1241        g_gfx->shakeStart();
     1242
    12391243        g_sprites->commitBoth();                /* Fixes SQ1 demo */
    12401244        for (i = 4 * p0; i; i--) {
    12411245                g_gfx->shakeScreen(i & 1);
     
    12431247                g_agi->mainCycle();
    12441248        }
    12451249        g_gfx->shakeEnd();
     1250
     1251        //Enables input again when done shaking
     1252        game.inputEnabled = 1;
    12461253}
    12471254
    12481255static void (*agiCommand[183])(uint8 *) = {