[Scummvm-git-logs] scummvm master -> 0dde0611116e38c6d46dc3cea2f9b6daf0650809
dreammaster
dreammaster at scummvm.org
Sat Apr 28 01:53:56 CEST 2018
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:
0dde061111 XEEN: Add script patch to remove statue floating off SE Clouds map corner
Commit: 0dde0611116e38c6d46dc3cea2f9b6daf0650809
https://github.com/scummvm/scummvm/commit/0dde0611116e38c6d46dc3cea2f9b6daf0650809
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-04-27T19:53:53-04:00
Commit Message:
XEEN: Add script patch to remove statue floating off SE Clouds map corner
Changed paths:
engines/xeen/patcher.cpp
engines/xeen/patcher.h
diff --git a/engines/xeen/patcher.cpp b/engines/xeen/patcher.cpp
index 5c2442c..f9d9ee7 100644
--- a/engines/xeen/patcher.cpp
+++ b/engines/xeen/patcher.cpp
@@ -50,6 +50,7 @@ static const ScriptEntry SCRIPT_PATCHES[] = {
void Patcher::patch() {
patchScripts();
+ patchObjects();
}
void Patcher::patchScripts() {
@@ -85,4 +86,16 @@ void Patcher::patchScripts() {
}
}
+void Patcher::patchObjects() {
+ FileManager &files = *g_vm->_files;
+ Map &map = *g_vm->_map;
+ Party &party = *g_vm->_party;
+
+ if ((g_vm->getGameID() == GType_Clouds || (g_vm->getGameID() == GType_WorldOfXeen && !files._ccNum)) &&
+ party._mazeId == 24) {
+ // Remove floating statue in the distance off SE corner of Clouds of Xeen map
+ map._mobData._objects[15]._position = Common::Point(-128, -128);
+ }
+}
+
} // End of namespace Xeen
diff --git a/engines/xeen/patcher.h b/engines/xeen/patcher.h
index f0d4267..24d6cd5 100644
--- a/engines/xeen/patcher.h
+++ b/engines/xeen/patcher.h
@@ -31,6 +31,11 @@ private:
* Patches incorrect script lines
*/
void patchScripts();
+
+ /**
+ * Patches incorrect map objects
+ */
+ void patchObjects();
public:
/**
* Constructor
More information about the Scummvm-git-logs
mailing list