diff options
author | Paul Gilbert | 2014-02-22 17:25:30 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-02-22 17:25:30 -0500 |
commit | 6c354bccf253118d459f92f16d8f702ae07806fb (patch) | |
tree | e2b5dc5788d9e26e7b1b2180c3c99043b4ebaa5f /engines/mads/mads.cpp | |
parent | 3df12371873cb8e3380422aa3095e367408526af (diff) | |
download | scummvm-rg350-6c354bccf253118d459f92f16d8f702ae07806fb.tar.gz scummvm-rg350-6c354bccf253118d459f92f16d8f702ae07806fb.tar.bz2 scummvm-rg350-6c354bccf253118d459f92f16d8f702ae07806fb.zip |
MADS: Implemented more logic for dialog display
Diffstat (limited to 'engines/mads/mads.cpp')
-rw-r--r-- | engines/mads/mads.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp index aa2bd55dd8..3a121d082b 100644 --- a/engines/mads/mads.cpp +++ b/engines/mads/mads.cpp @@ -42,6 +42,7 @@ MADSEngine::MADSEngine(OSystem *syst, const MADSGameDescription *gameDesc) : _invObjectStill = false; _textWindowStill = false; + _debugger = nullptr; _events = nullptr; _font = nullptr; _game = nullptr; @@ -53,6 +54,7 @@ MADSEngine::MADSEngine(OSystem *syst, const MADSGameDescription *gameDesc) : } MADSEngine::~MADSEngine() { + delete _debugger; delete _events; delete _font; delete _game; @@ -74,10 +76,11 @@ void MADSEngine::initialise() { MSprite::setVm(this); ResourcesManager::init(this); + _debugger = new Debugger(this); _events = new EventsManager(this); _palette = new Palette(this); _font = new Font(this); - _screen = MSurface::init(true); + _screen = MSurface::init(g_system->getWidth(), g_system->getHeight()); _sound = new SoundManager(this, _mixer); _userInterface = UserInterface::init(this); _game = Game::init(this); @@ -94,7 +97,7 @@ Common::Error MADSEngine::run() { _game->run(); // Dummy loop to keep application active - _events->handleEvents(); + _events->delay(9999); return Common::kNoError; } |