[Scummvm-cvs-logs] scummvm master -> 3d8a4d23dd9dd077c5bc140411b8c8fb13213984

bluegr bluegr at gmail.com
Mon Oct 7 01:06:15 CEST 2013


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:
3d8a4d23dd NEVERHOOD: Correctly disable input when Klaymen drinks the wrong potion


Commit: 3d8a4d23dd9dd077c5bc140411b8c8fb13213984
    https://github.com/scummvm/scummvm/commit/3d8a4d23dd9dd077c5bc140411b8c8fb13213984
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2013-10-06T16:05:39-07:00

Commit Message:
NEVERHOOD: Correctly disable input when Klaymen drinks the wrong potion

Changed paths:
    engines/neverhood/staticdata.cpp



diff --git a/engines/neverhood/staticdata.cpp b/engines/neverhood/staticdata.cpp
index 0069926..ec9c852 100644
--- a/engines/neverhood/staticdata.cpp
+++ b/engines/neverhood/staticdata.cpp
@@ -53,6 +53,22 @@ void StaticData::load(const char *filename) {
 			messageItem.messageValue = fd.readUint32LE();
 			messageList->push_back(messageItem);
 		}
+
+		// WORKAROUND for a problem in two of the game's message lists:
+		// the message lists used when Klaymen is drinking the wrong potion
+		// have as a last element the animation itself (message 0x4832).
+		// However, when processMessageList() reaches the last element in a
+		// message list, it allows player input, which means that the player
+		// can erroneously skip these potion drinking animations. We insert
+		// another message at the end of these lists to prevent player input
+		// till the animations are finished
+		if (id == 0x004AF0C8 || id == 0x004B5BD0) {	// wrong potion message lists
+			MessageItem messageItem;
+			messageItem.messageNum = 0x4004;	// set Klaymen's state to idle
+			messageItem.messageValue = 0;
+			messageList->push_back(messageItem);
+		}
+
 		_messageLists[id] = messageList;
 	}
 






More information about the Scummvm-git-logs mailing list