Ticket #8022: loomlight.diff

File loomlight.diff, 911 bytes (added by eriktorbjorn, 22 years ago)

Patch against an August 21 CVS snapshot

  • scummvm/script_v1.cpp

    diff -ur ScummVM-cvs20020821/scummvm/script_v1.cpp ScummVM-cvs20020821+hack/scummvm/script_v1.cpp
    old new  
    15491549        b = fetchScriptByte();
    15501550        c = fetchScriptByte();
    15511551
     1552        // FIXME - I won't know where Loom is supposed to get the dimentions
     1553        // for its flashlights, but with the above code b and c will always be
     1554        // zero, which obviously won't work. For now, let's just hard-code the
     1555        // dimensions until someone figures it out.
     1556        //
     1557        // I'm not sure I got the dimensions right, but something like this...
     1558
     1559        if (_gameId == GID_LOOM256 && (a & LIGHTMODE_flashlight) &&
     1560                        (_vars[VAR_CURRENT_LIGHTS] & LIGHTMODE_flashlight)) {
     1561                a = 7;
     1562                b = 7;
     1563                c = 1;
     1564        }
     1565       
    15521566        if (c == 0)
    15531567                _vars[VAR_CURRENT_LIGHTS] = a;
    15541568        else if (c == 1) {