SHERLOCK: Fix closing closet in Backstage scene

This commit is contained in:
Paul Gilbert 2015-04-26 03:45:28 -05:00
parent d7a8d70164
commit 9044dd49dc
3 changed files with 7 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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;