[Scummvm-git-logs] scummvm master -> c30380d0a3fc8f9a04825d5adab183d54276358f

csnover csnover at users.noreply.github.com
Thu Oct 27 17:55:51 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c30380d0a3 SCI32: Fix LSL6hires script bug


Commit: c30380d0a3fc8f9a04825d5adab183d54276358f
    https://github.com/scummvm/scummvm/commit/c30380d0a3fc8f9a04825d5adab183d54276358f
Author: Colin Snover (github.com at zetafleet.com)
Date: 2016-10-27T10:55:30-05:00

Commit Message:
SCI32: Fix LSL6hires script bug

Fixes Trac#9612.

Changed paths:
    engines/sci/engine/script_patches.cpp



diff --git a/engines/sci/engine/script_patches.cpp b/engines/sci/engine/script_patches.cpp
index 5ac4b75..be96344 100644
--- a/engines/sci/engine/script_patches.cpp
+++ b/engines/sci/engine/script_patches.cpp
@@ -2190,8 +2190,27 @@ static const SciScriptPatcherEntry larry6Signatures[] = {
 #pragma mark -
 #pragma mark Leisure Suit Larry 6 Hires
 
+// When entering room 270 (diving board) from room 230, a typo in the game
+// script means that `setScale` is called accidentally instead of `setScaler`.
+// In SSCI this did not do much because the first argument happened to be
+// smaller than the y-position of `ego`, but in ScummVM the first argument is
+// larger and so a debug message "y value less than vanishingY" is displayed.
+static const uint16 larry6HiresSignatureSetScale[] = {
+	SIG_MAGICDWORD,
+	0x38, SIG_UINT16(0x14b), // pushi 014b (setStyle)
+	0x38, SIG_UINT16(0x05),  // pushi 0005
+	0x51, 0x2c,              // class 2c (Styler)
+	SIG_END
+};
+
+static const uint16 larry6HiresPatchSetScale[] = {
+	0x38, SIG_UINT16(0x14f), // pushi 014f (setStyler)
+	PATCH_END
+};
+
 //          script, description,                                      signature                         patch
 static const SciScriptPatcherEntry larry6HiresSignatures[] = {
+	{  true,   270, "fix incorrect setScale call",                 1, larry6HiresSignatureSetScale,     larry6HiresPatchSetScale },
 	{  true, 64990, "increase number of save games",               1, sci2NumSavesSignature1,           sci2NumSavesPatch1 },
 	{  true, 64990, "increase number of save games",               1, sci2NumSavesSignature2,           sci2NumSavesPatch2 },
 	{  true, 64990, "disable change directory button",             1, sci2ChangeDirSignature,           sci2ChangeDirPatch },





More information about the Scummvm-git-logs mailing list