diff options
author | Paul Gilbert | 2007-06-22 12:36:04 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-06-22 12:36:04 +0000 |
commit | 8b3821e9ff5b60ee75d180514ca8b067bd5a0105 (patch) | |
tree | 2e07798aec37da5ec665ac09e08ee6eca231e8f7 /engines/lure/lure.cpp | |
parent | 707e62e669b227e0baf7a8c976283b32cef20b9d (diff) | |
download | scummvm-rg350-8b3821e9ff5b60ee75d180514ca8b067bd5a0105.tar.gz scummvm-rg350-8b3821e9ff5b60ee75d180514ca8b067bd5a0105.tar.bz2 scummvm-rg350-8b3821e9ff5b60ee75d180514ca8b067bd5a0105.zip |
Lots of bugfixes - game is now completable
svn-id: r27606
Diffstat (limited to 'engines/lure/lure.cpp')
-rw-r--r-- | engines/lure/lure.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp index 6b28753fd1..f7c4272f0e 100644 --- a/engines/lure/lure.cpp +++ b/engines/lure/lure.cpp @@ -44,6 +44,8 @@ LureEngine::LureEngine(OSystem *system): Engine(system) { Common::addSpecialDebugLevel(kLureDebugScripts, "scripts", "Scripts debugging"); Common::addSpecialDebugLevel(kLureDebugAnimations, "animations", "Animations debugging"); Common::addSpecialDebugLevel(kLureDebugHotspots, "hotspots", "Hotspots debugging"); + Common::addSpecialDebugLevel(kLureDebugFights, "fights", "Fights debugging"); + // Setup mixer /* if (!_mixer->isReady()) { @@ -75,6 +77,7 @@ int LureEngine::init() { _menu = new Menu(); Surface::initialise(); _room = new Room(); + _fights = new FightsManager(); int_engine = this; return 0; } @@ -85,6 +88,7 @@ LureEngine::~LureEngine() { // Delete and deinitialise subsystems Surface::deinitialise(); + delete _fights; delete _room; delete _menu; delete _events; @@ -146,6 +150,7 @@ bool LureEngine::saveGame(uint8 slotNumber, Common::String &caption) { Resources::getReference().saveToStream(f); Room::getReference().saveToStream(f); + Fights.saveToStream(f); delete f; return true; @@ -187,6 +192,7 @@ bool LureEngine::loadGame(uint8 slotNumber) { // Load in the data Resources::getReference().loadFromStream(f); Room::getReference().loadFromStream(f); + Fights.loadFromStream(f); delete f; return true; |