aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/talk.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2015-06-07 20:51:16 +0300
committerFilippos Karapetis2015-06-07 20:51:45 +0300
commitdc43979a9c73e7f93733d050716b8afd02a1741c (patch)
tree3dd525c18a4fb28aaf41a47554889eb3c1126cfb /engines/sherlock/talk.cpp
parent0f8f40c11185edd361bedf443f79b64328be6088 (diff)
downloadscummvm-rg350-dc43979a9c73e7f93733d050716b8afd02a1741c.tar.gz
scummvm-rg350-dc43979a9c73e7f93733d050716b8afd02a1741c.tar.bz2
scummvm-rg350-dc43979a9c73e7f93733d050716b8afd02a1741c.zip
SHERLOCK: Split cmdGotoScene and add the Rose Tattoo implementation
This also adds some code missing from the Serrated Scalpel implementation
Diffstat (limited to 'engines/sherlock/talk.cpp')
-rw-r--r--engines/sherlock/talk.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index fe1ff705fd..e11fc66447 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -1336,34 +1336,6 @@ OpcodeReturn Talk::cmdEnableEndKey(const byte *&str) {
return RET_SUCCESS;
}
-OpcodeReturn Talk::cmdGotoScene(const byte *&str) {
- Map &map = *_vm->_map;
- People &people = *_vm->_people;
- Scene &scene = *_vm->_scene;
- scene._goToScene = str[1] - 1;
-
- if (scene._goToScene != 100) {
- // Not going to the map overview
- map._oldCharPoint = scene._goToScene;
- map._overPos.x = map[scene._goToScene].x * 100 - 600;
- map._overPos.y = map[scene._goToScene].y * 100 + 900;
-
- // Run a canimation?
- if (str[2] > 100) {
- people._hSavedFacing = str[2];
- people._hSavedPos = Common::Point(160, 100);
- }
- }
- str += 6;
-
- _scriptMoreFlag = (scene._goToScene == 100) ? 2 : 1;
- _scriptSaveIndex = str - _scriptStart;
- _endStr = true;
- _wait = 0;
-
- return RET_SUCCESS;
-}
-
OpcodeReturn Talk::cmdHolmesOff(const byte *&str) {
People &people = *_vm->_people;
people[PLAYER]._type = REMOVE;