From 0dde0611116e38c6d46dc3cea2f9b6daf0650809 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 27 Apr 2018 19:53:53 -0400 Subject: XEEN: Add script patch to remove statue floating off SE Clouds map corner --- engines/xeen/patcher.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engines/xeen/patcher.cpp') 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 -- cgit v1.2.3