Ticket #8302: comi.cannon.patch

File comi.cannon.patch, 779 bytes (added by sev-, 20 years ago)

COMI: cannon battle patch

  • scumm/script_v8.cpp

    old new  
    14011401                push(checkXYInBoxBounds(args[3], args[1], args[2]));
    14021402                break;
    14031403        case 0xD3:              // getKeyState
    1404                 switch(args[1]) {
    1405                 // Stub out a few specific cases, just to make things less noisy
    1406 
    1407                 // To actually implement this, we may need a new OSystem call to do
    1408                 // asyncronous keyboard state checking...
    1409                 case 0x14B:     //      Left Arrow depressed?
    1410                 case 0x14D:     //      Right Arrow depressed?
    1411                 case 0x09:      //      Tab depressed (fire in ship combat)
    1412                         push(0);
    1413                         break;
    1414                 default:
    1415                         warning("getKeyState(0x%X)", args[1]);
    1416                         push(0);
    1417                         break;
    1418                 }
     1404                push(getKeyState(args[1]));
    14191405                break;
    14201406        case 0xCE:              // getRGBSlot
    14211407        case 0xD7:              // getBox