diff options
Diffstat (limited to 'engines/sherlock/scalpel')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_scene.cpp | 3 | ||||
-rw-r--r-- | engines/sherlock/scalpel/scalpel_scene.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/sherlock/scalpel/scalpel_scene.cpp b/engines/sherlock/scalpel/scalpel_scene.cpp index 1bda827260..bbe6674837 100644 --- a/engines/sherlock/scalpel/scalpel_scene.cpp +++ b/engines/sherlock/scalpel/scalpel_scene.cpp @@ -23,6 +23,7 @@ #include "sherlock/scalpel/scalpel_scene.h" #include "sherlock/scalpel/scalpel_map.h" #include "sherlock/scalpel/scalpel_people.h" +#include "sherlock/scalpel/scalpel_user_interface.h" #include "sherlock/scalpel/scalpel.h" #include "sherlock/events.h" #include "sherlock/people.h" @@ -490,7 +491,7 @@ int ScalpelScene::startCAnim(int cAnimNum, int playRate) { People &people = *_vm->_people; Resources &res = *_vm->_res; Talk &talk = *_vm->_talk; - UserInterface &ui = *_vm->_ui; + ScalpelUserInterface &ui = *(ScalpelUserInterface *)_vm->_ui; Point32 tpPos, walkPos; int tpDir, walkDir; int tFrames = 0; diff --git a/engines/sherlock/scalpel/scalpel_scene.h b/engines/sherlock/scalpel/scalpel_scene.h index f79892e4e6..77e86cf9cf 100644 --- a/engines/sherlock/scalpel/scalpel_scene.h +++ b/engines/sherlock/scalpel/scalpel_scene.h @@ -81,7 +81,7 @@ public: * @param playRate Play rate. 0 is invalid; 1=normal speed, 2=1/2 speed, etc. * A negative playRate can also be specified to play the animation in reverse */ - virtual int startCAnim(int cAnimNum, int playRate); + virtual int startCAnim(int cAnimNum, int playRate = 1); }; } // End of namespace Scalpel |