[Scummvm-git-logs] scummvm master -> dc56d70b5dc13ec736f7c8ec59cd91c3c58bec64
sluicebox
22204938+sluicebox at users.noreply.github.com
Wed Feb 20 04:23:01 CET 2019
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:
dc56d70b5d SCI: Update LB2 crate door pathfinding workaround
Commit: dc56d70b5dc13ec736f7c8ec59cd91c3c58bec64
https://github.com/scummvm/scummvm/commit/dc56d70b5dc13ec736f7c8ec59cd91c3c58bec64
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2019-02-19T19:21:43-08:00
Commit Message:
SCI: Update LB2 crate door pathfinding workaround
Updates a pathfinding workaround to handle all edge cases
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 775bf8f..93122c7 100644
--- a/engines/sci/engine/script_patches.cpp
+++ b/engines/sci/engine/script_patches.cpp
@@ -5286,27 +5286,24 @@ static const uint16 laurabow2PatchRememberWiredEastDoor[] = {
// algorithm
// It's possible to walk through the closed door in room 448 and enter the crate
// room before act 5 due to differences in our pathfinding algorithm from Sierra's.
-// Ego is able to stand one pixel farther than Sierra's algorithm allowed and
-// reach the control area behind the door which triggers the room change.
-// We work around this by expanding the closed door's polygon points by one
-// pixel to prevent ego from being able to reach the control area.
+// This edge case appears to be due to one of the door's points being one pixel
+// within the room's walkable boundary, allowing ego to walk through this edge
+// from certain positions. We work around this by moving the door's point by
+// two pixels so that it's outside the room's walkable boundary.
//
// Applies to: All Floppy and CD versions
// Responsible method: transomDoor:createPoly
// Fixes bug: #9952
static const uint16 laurabow2SignatureFixArmorHallDoorPathfinding[] = {
SIG_MAGICDWORD,
- 0x39, 0x6c, // pushi 6c [ x = 108 ]
- 0x39, 0x78, // pushi 78 [ y = 120 ]
- 0x39, 0x58, // pushi 58 [ x = 88 ]
- 0x38, SIG_UINT16(0x0083), // pushi 83 [ y = 131 ]
+ 0x39, 0x50, // pushi 50 [ x = 80 ]
+ 0x39, 0x7d, // pushi 7d [ y = 125 ]
SIG_END
};
static const uint16 laurabow2PatchFixArmorHallDoorPathfinding[] = {
- 0x39, 0x6d, // pushi 6d [ x = 109 ]
- PATCH_ADDTOOFFSET(+4),
- 0x38, PATCH_UINT16(0x0084), // pushi 84 [ y = 132 ]
+ PATCH_ADDTOOFFSET(+2),
+ 0x39, 0x7f, // pushi 7f [ y = 127 ]
PATCH_END
};
More information about the Scummvm-git-logs
mailing list