diff options
author | Paul Gilbert | 2018-04-27 19:53:53 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-27 19:53:53 -0400 |
commit | 0dde0611116e38c6d46dc3cea2f9b6daf0650809 (patch) | |
tree | 90a8296942f293f3696dc41e0b625c16dd10422a | |
parent | 657f3f81267eb653172d3607ec20d295f4eb578e (diff) | |
download | scummvm-rg350-0dde0611116e38c6d46dc3cea2f9b6daf0650809.tar.gz scummvm-rg350-0dde0611116e38c6d46dc3cea2f9b6daf0650809.tar.bz2 scummvm-rg350-0dde0611116e38c6d46dc3cea2f9b6daf0650809.zip |
XEEN: Add script patch to remove statue floating off SE Clouds map corner
-rw-r--r-- | engines/xeen/patcher.cpp | 13 | ||||
-rw-r--r-- | engines/xeen/patcher.h | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/engines/xeen/patcher.cpp b/engines/xeen/patcher.cpp index 5c2442cb1e..f9d9ee77ff 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 f0d4267320..24d6cd5a8d 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 |