Ticket #1588: loom-text.diff
File loom-text.diff, 1.1 KB (added by , 20 years ago) |
---|
-
scumm/script_v5.cpp
old new 2703 2703 2704 2704 // In SCUMM V1-V3, there were no 'default' values for the text slot 2705 2705 // 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. 2708 2707 // 2709 2708 // Note: This is needed for Indy3 (Grail Diary). It's also needed 2710 2709 // for Loom, or the lines Bobbin speaks during the intro are put 2711 2710 // 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. 2712 2715 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; 2714 2719 } 2715 2720 return; 2716 2721 default: