[Scummvm-cvs-logs] scummvm master -> 8753fa17d302297ff9cd2cc0156397fb4d3da0ed
dreammaster
dreammaster at scummvm.org
Sat Jul 25 23:03:25 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8753fa17d3 SHERLOCK: RT: Add RT version of default scene facing list
Commit: 8753fa17d302297ff9cd2cc0156397fb4d3da0ed
https://github.com/scummvm/scummvm/commit/8753fa17d302297ff9cd2cc0156397fb4d3da0ed
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-07-25T17:02:24-04:00
Commit Message:
SHERLOCK: RT: Add RT version of default scene facing list
Changed paths:
engines/sherlock/scalpel/scalpel_scene.cpp
engines/sherlock/scalpel/scalpel_scene.h
engines/sherlock/scene.cpp
engines/sherlock/tattoo/tattoo_scene.cpp
engines/sherlock/tattoo/tattoo_scene.h
diff --git a/engines/sherlock/scalpel/scalpel_scene.cpp b/engines/sherlock/scalpel/scalpel_scene.cpp
index 4e6e9e4..9c36e84 100644
--- a/engines/sherlock/scalpel/scalpel_scene.cpp
+++ b/engines/sherlock/scalpel/scalpel_scene.cpp
@@ -34,6 +34,12 @@ namespace Sherlock {
namespace Scalpel {
+const int FS_TRANS[8] = {
+ STOP_UP, STOP_UPRIGHT, STOP_RIGHT, STOP_DOWNRIGHT, STOP_DOWN, STOP_DOWNLEFT, STOP_LEFT, STOP_UPLEFT
+};
+
+/*----------------------------------------------------------------*/
+
bool ScalpelScene::loadScene(const Common::String &filename) {
ScalpelMap &map = *(ScalpelMap *)_vm->_map;
bool result = Scene::loadScene(filename);
diff --git a/engines/sherlock/scalpel/scalpel_scene.h b/engines/sherlock/scalpel/scalpel_scene.h
index fa65ecd..62dd1c7 100644
--- a/engines/sherlock/scalpel/scalpel_scene.h
+++ b/engines/sherlock/scalpel/scalpel_scene.h
@@ -35,6 +35,8 @@ namespace Sherlock {
namespace Scalpel {
+extern const int FS_TRANS[8];
+
enum { BLACKWOOD_CAPTURE = 2, BAKER_STREET = 4, DRAWING_ROOM = 12, STATION = 17, PUB_INTERIOR = 19,
LAWYER_OFFICE = 27, BAKER_ST_EXTERIOR = 39, RESCUE_ANNA = 52, MOOREHEAD_DEATH = 53, EXIT_GAME = 55,
BRUMWELL_SUICIDE = 70, OVERHEAD_MAP2 = 98, DARTS_GAME = 99, OVERHEAD_MAP = 100 };
diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp
index 328bf64..2ae45b0 100644
--- a/engines/sherlock/scene.cpp
+++ b/engines/sherlock/scene.cpp
@@ -32,13 +32,6 @@
namespace Sherlock {
-static const int FS_TRANS[8] = {
- Scalpel::STOP_UP, Scalpel::STOP_UPRIGHT, Scalpel::STOP_RIGHT, Scalpel::STOP_DOWNRIGHT,
- Scalpel::STOP_DOWN, Scalpel::STOP_DOWNLEFT, Scalpel::STOP_LEFT, Scalpel::STOP_UPLEFT
-};
-
-/*----------------------------------------------------------------*/
-
BgFileHeader::BgFileHeader() {
_numStructs = -1;
_numImages = -1;
@@ -1198,7 +1191,11 @@ void Scene::transitionToScene() {
// Note: If a savegame was just loaded, then the data is already correct.
// Otherwise, this is a linked scene or entrance info, and must be translated
if (hSavedFacing < 8 && !saves._justLoaded) {
- hSavedFacing = FS_TRANS[hSavedFacing];
+ if (IS_ROSE_TATTOO)
+ hSavedFacing = Tattoo::FS_TRANS[hSavedFacing];
+ else
+ hSavedFacing = Scalpel::FS_TRANS[hSavedFacing];
+
hSavedPos.x *= FIXED_INT_MULTIPLIER;
hSavedPos.y *= FIXED_INT_MULTIPLIER;
}
diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp
index 17c27a0..e40b4d6 100644
--- a/engines/sherlock/tattoo/tattoo_scene.cpp
+++ b/engines/sherlock/tattoo/tattoo_scene.cpp
@@ -31,6 +31,12 @@ namespace Sherlock {
namespace Tattoo {
+const int FS_TRANS[8] = {
+ STOP_UP, STOP_UPRIGHT, STOP_RIGHT, STOP_DOWNRIGHT, STOP_DOWN, STOP_DOWNLEFT, STOP_LEFT, STOP_UPLEFT
+};
+
+/*----------------------------------------------------------------*/
+
struct ShapeEntry {
Object *_shape;
TattooPerson *_person;
diff --git a/engines/sherlock/tattoo/tattoo_scene.h b/engines/sherlock/tattoo/tattoo_scene.h
index d9e4ae3..b75f7e7 100644
--- a/engines/sherlock/tattoo/tattoo_scene.h
+++ b/engines/sherlock/tattoo/tattoo_scene.h
@@ -31,6 +31,8 @@ namespace Sherlock {
namespace Tattoo {
+extern const int FS_TRANS[8];
+
enum {
STARTING_GAME_SCENE = 1, STARTING_INTRO_SCENE = 91, OVERHEAD_MAP2 = 90, OVERHEAD_MAP = 100
};
More information about the Scummvm-git-logs
mailing list