Ticket #3866: compare.diff

File compare.diff, 706 bytes (added by eriktorbjorn, 16 years ago)

Patch against current 0.12 branch

  • engines/cine/script_fw.cpp

     
    14931493
    14941494                debugC(5, kCineDebugScript, "Line: %d: compare globalVars[%d] and %d", _line, varIdx, value);
    14951495
    1496                 _compare = compareVars(_globalVars[varIdx], value);
     1496                // WORKAROUND for bug #2054882. Without this, the monks will
     1497                // always kill you as an impostor, even if you enter the
     1498                // monastery in disguise.
     1499                if (varIdx == 255 && (g_cine->getGameType() == Cine::GType_FW)) {
     1500                        _compare = 1;
     1501                } else {
     1502                        _compare = compareVars(_globalVars[varIdx], value);
     1503                }
    14971504        }
    14981505
    14991506        return 0;