aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/xeen.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-09 19:33:31 -0400
committerPaul Gilbert2018-04-09 19:33:31 -0400
commitb13b00deb3b604f6ece5e63c3824100b9ae7cb32 (patch)
tree02da609f5589a5fecd31b499db798f5db9c9ec73 /engines/xeen/xeen.cpp
parentf52517449591bdc269bec7eecfffdc5439567d33 (diff)
downloadscummvm-rg350-b13b00deb3b604f6ece5e63c3824100b9ae7cb32.tar.gz
scummvm-rg350-b13b00deb3b604f6ece5e63c3824100b9ae7cb32.tar.bz2
scummvm-rg350-b13b00deb3b604f6ece5e63c3824100b9ae7cb32.zip
XEEN: Add Patcher class for doing on-the-fly map patches
The first patch is a script patch for Ellinger's Tower Level 2 on the Dark Side. It fixes an incorrect index for a wall item of a curtain that's meant to be removed
Diffstat (limited to 'engines/xeen/xeen.cpp')
-rw-r--r--engines/xeen/xeen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/xeen/xeen.cpp b/engines/xeen/xeen.cpp
index f495f48a49..41de1d8565 100644
--- a/engines/xeen/xeen.cpp
+++ b/engines/xeen/xeen.cpp
@@ -49,6 +49,7 @@ XeenEngine::XeenEngine(OSystem *syst, const XeenGameDescription *gameDesc)
_locations = nullptr;
_map = nullptr;
_party = nullptr;
+ _patcher = nullptr;
_resources = nullptr;
_saves = nullptr;
_screen = nullptr;
@@ -75,6 +76,7 @@ XeenEngine::~XeenEngine() {
delete _locations;
delete _map;
delete _party;
+ delete _patcher;
delete _saves;
delete _screen;
delete _scripts;
@@ -100,6 +102,7 @@ bool XeenEngine::initialize() {
_locations = new LocationManager();
_map = new Map(this);
_party = new Party(this);
+ _patcher = new Patcher();
_saves = new SavesManager(_targetName);
_screen = new Screen(this);
_scripts = new Scripts(this);