XEEN: Add script patch to remove statue floating off SE Clouds map corner

This commit is contained in:
Paul Gilbert 2018-04-27 19:53:53 -04:00
parent 657f3f8126
commit 0dde061111
2 changed files with 18 additions and 0 deletions

View File

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

View File

@ -31,6 +31,11 @@ private:
* Patches incorrect script lines
*/
void patchScripts();
/**
* Patches incorrect map objects
*/
void patchObjects();
public:
/**
* Constructor