[Scummvm-cvs-logs] CVS: scummvm/scumm script_v5.cpp,1.38,1.39

Max Horn fingolfin at users.sourceforge.net
Sat Apr 26 09:18:16 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv32347

Modified Files:
	script_v5.cpp 
Log Message:
fixed issue in Loom (and other OLD_BUNDLE games?) in decodeParseString

Index: script_v5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v5.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- script_v5.cpp	26 Apr 2003 13:28:33 -0000	1.38
+++ script_v5.cpp	26 Apr 2003 16:17:51 -0000	1.39
@@ -2416,16 +2416,32 @@
 		case 1:										/* color */
 			_string[textSlot].color = getVarOrDirectByte(0x80);
 			break;
-		case 2:										/* right */
+		case 2:										/* clipping */
 			_string[textSlot].right = getVarOrDirectWord(0x80);
 			break;
+		case 3:										/* erase */
+			{
+			int a = getVarOrDirectWord(0x80);
+			int b = getVarOrDirectWord(0x40);
+			warning("Scumm_v5::decodeParseString: Unhandled case 3: %d, %d\n", a, b);
+			}
+			break;
 		case 4:										/* center */
 			_string[textSlot].center = true;
 			_string[textSlot].overhead = false;
 			break;
 		case 6:										/* left */
-			_string[textSlot].center = false;
-			_string[textSlot].overhead = false;
+			// FIXME: not sure if GF_OLD_BUNDLE is the right thing to check...
+			// but Loom needs this, for sure.
+			if (_features & GF_OLD_BUNDLE) {
+				// FIXME: this value seems to be some kind of override
+				// for text spacing?!?
+				/* int a = */ getVarOrDirectWord(0x80);
+				
+			} else {
+				_string[textSlot].center = false;
+				_string[textSlot].overhead = false;
+			}
 			break;
 		case 7:										/* overhead */
 			_string[textSlot].overhead = true;
@@ -2484,6 +2500,7 @@
 			_scriptPointer = _messagePtr;
 			return;
 		default:
+			warning("Scumm_v5::decodeParseString: Unhandled case %d", _opcode & 0xF);
 			return;
 		}
 	}





More information about the Scummvm-git-logs mailing list