mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
SHERLOCK: Fix closing closet in Backstage scene
This commit is contained in:
parent
d7a8d70164
commit
9044dd49dc
@ -366,6 +366,8 @@ void ActionType::synchronize(Common::SeekableReadStream &s) {
|
||||
|
||||
_cAnimNum = s.readByte();
|
||||
_cAnimSpeed = s.readByte();
|
||||
if (_cAnimSpeed & 0x80)
|
||||
_cAnimSpeed = -(_cAnimSpeed & 0x7f);
|
||||
|
||||
for (int idx = 0; idx < 4; ++idx) {
|
||||
s.read(buffer, 12);
|
||||
@ -380,6 +382,8 @@ void UseType::synchronize(Common::SeekableReadStream &s) {
|
||||
|
||||
_cAnimNum = s.readByte();
|
||||
_cAnimSpeed = s.readByte();
|
||||
if (_cAnimSpeed & 0x80)
|
||||
_cAnimSpeed = -(_cAnimSpeed & 0x7f);
|
||||
|
||||
for (int idx = 0; idx < 4; ++idx) {
|
||||
s.read(buffer, 12);
|
||||
|
@ -125,8 +125,8 @@ public:
|
||||
enum { REVERSE_DIRECTION = 0x80 };
|
||||
|
||||
struct ActionType {
|
||||
int8 _cAnimNum;
|
||||
uint8 _cAnimSpeed; // if high bit set, play in reverse
|
||||
int _cAnimNum;
|
||||
int _cAnimSpeed; // if high bit set, play in reverse
|
||||
Common::String _names[4];
|
||||
|
||||
void synchronize(Common::SeekableReadStream &s);
|
||||
|
@ -2678,7 +2678,7 @@ void UserInterface::checkAction(ActionType &action, const char *const messages[]
|
||||
if (scene._goToScene != 1 && !printed && !talk._talkToAbort) {
|
||||
_infoFlag = true;
|
||||
clearInfo();
|
||||
screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, messages[action._cAnimNum]);
|
||||
screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, "Done...");
|
||||
|
||||
// Set how long to show the message
|
||||
_menuCounter = 30;
|
||||
|
Loading…
x
Reference in New Issue
Block a user