Ticket #8498: cauldronstate.diff

File cauldronstate.diff, 1.2 KB (added by SF/clemty, 15 years ago)

cmd_setCauldronState and cmd_queryCauldronState

  • kyra.cpp

    diff -u old/kyra.cpp new/kyra.cpp
    old new  
    351351        _fadeText = false;
    352352        _noDrawShapesFlag = 0;
    353353
     354        _cauldronState = 0;
     355
    354356        _brandonStatusBit = 0;
    355357        _brandonStatusBit0x02Flag = _brandonStatusBit0x20Flag = 10;
    356358        _brandonPosX = _brandonPosY = -1;
  • kyra.h

    diff -u old/kyra.h new/kyra.h
    old new  
    685685        int16 _marbleVaseItem;
    686686        int16 _foyerItemTable[3];
    687687       
     688        uint8 _cauldronState;
     689
    688690        uint16 _brandonStatusBit;
    689691        int _brandonStatusBit0x02Flag;
    690692        int _brandonStatusBit0x20Flag;
  • script_v1.cpp

    diff -u old/script_v1.cpp new/script_v1.cpp
    old new  
    17021702}
    17031703
    17041704int KyraEngine::cmd_queryCauldronState(ScriptState *script) {
    1705         warning("STUB: cmd_queryCauldronState");
    1706         return 0;
     1705        debug(3, "cmd_queryCauldronState");
     1706        return _cauldronState;
    17071707}
    17081708
    17091709int KyraEngine::cmd_setCauldronState(ScriptState *script) {
    1710         warning("STUB: cmd_setCauldronState");
     1710        debug(3, "cmd_setCauldronState");
     1711        _cauldronState=stackPos(0);
    17111712        return 0;
    17121713}
    17131714