aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/sherlock.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-19 19:49:42 -0400
committerPaul Gilbert2015-03-19 19:49:42 -0400
commita02461fcb15da3b2e7e91d9cfb1bca559a1d277b (patch)
tree610100fe3bcb7b9eb98a6c91821d04fbd4dba923 /engines/sherlock/sherlock.cpp
parent5a7ea9318d54bd725dd2493277dc0daf17f8abb4 (diff)
downloadscummvm-rg350-a02461fcb15da3b2e7e91d9cfb1bca559a1d277b.tar.gz
scummvm-rg350-a02461fcb15da3b2e7e91d9cfb1bca559a1d277b.tar.bz2
scummvm-rg350-a02461fcb15da3b2e7e91d9cfb1bca559a1d277b.zip
SHERLOCK: Refactorings, new Sprite and People classes
Diffstat (limited to 'engines/sherlock/sherlock.cpp')
-rw-r--r--engines/sherlock/sherlock.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sherlock/sherlock.cpp b/engines/sherlock/sherlock.cpp
index 8b597df31b..a292ee675c 100644
--- a/engines/sherlock/sherlock.cpp
+++ b/engines/sherlock/sherlock.cpp
@@ -74,6 +74,7 @@ void SherlockEngine::initialize() {
_midi->setNativeMT32(native_mt32);
*/
+ ImageFile::setVm(this);
_res = new Resources();
_animation = new Animation(this);
_debugger = new Debugger(this);
@@ -83,7 +84,6 @@ void SherlockEngine::initialize() {
_screen = new Screen(this);
_sound = new Sound(this);
_talk = new Talk();
- Sprite::setVm(this);
}
Common::Error SherlockEngine::run() {
@@ -97,6 +97,9 @@ Common::Error SherlockEngine::run() {
if (shouldQuit())
break;
+ // Initialize the scene
+ _scene->selectScene();
+
// TODO: Implement game and remove this dummy loop
while (!shouldQuit())
_events->pollEventsAndWait();