Ticket #1588: loom-text.diff

File loom-text.diff, 1.1 KB (added by eriktorbjorn, 20 years ago)

Patch against an April 26 CVS snapshot

  • scumm/script_v5.cpp

    old new  
    27032703
    27042704                        // In SCUMM V1-V3, there were no 'default' values for the text slot
    27052705                        // values. Hence to achieve correct behaviour, we have to keep the
    2706                         // 'default' values in sync with the active values. To do that we
    2707                         // simply call saveDefault() on the StringTab in question.
     2706                        // 'default' values in sync with the active values.
    27082707                        //
    27092708                        // Note: This is needed for Indy3 (Grail Diary). It's also needed
    27102709                        // for Loom, or the lines Bobbin speaks during the intro are put
    27112710                        // at position 0,0.
     2711                        //
     2712                        // Note: We can't use saveDefault() here because we only want to
     2713                        // save the position and color. In particular, we do not want to
     2714                        // save the 'center' flag. See bug #933168.
    27122715                        if (_version <= 3) {
    2713                                 _string[textSlot].saveDefault();
     2716                                _string[textSlot]._default.xpos = _string[textSlot].xpos;
     2717                                _string[textSlot]._default.ypos = _string[textSlot].ypos;
     2718                                _string[textSlot]._default.color = _string[textSlot].color;
    27142719                        }
    27152720                        return;
    27162721                default: