aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-23 16:01:32 -0400
committerPaul Gilbert2015-08-23 16:01:32 -0400
commit6511f2ec2cc8bb1741e989e8d924a4708f3f04a4 (patch)
treedcd8c1b7329026b813cddaf64262247fed5a46f7 /engines/sherlock/tattoo
parent57edfc8a5dd7f96e01759561709744aea5aa9943 (diff)
downloadscummvm-rg350-6511f2ec2cc8bb1741e989e8d924a4708f3f04a4.tar.gz
scummvm-rg350-6511f2ec2cc8bb1741e989e8d924a4708f3f04a4.tar.bz2
scummvm-rg350-6511f2ec2cc8bb1741e989e8d924a4708f3f04a4.zip
SHERLOCK: Replace various scene numbers with enum values
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/tattoo_scene.h2
-rw-r--r--engines/sherlock/tattoo/tattoo_user_interface.cpp2
-rw-r--r--engines/sherlock/tattoo/widget_talk.cpp2
-rw-r--r--engines/sherlock/tattoo/widget_tooltip.cpp3
4 files changed, 5 insertions, 4 deletions
diff --git a/engines/sherlock/tattoo/tattoo_scene.h b/engines/sherlock/tattoo/tattoo_scene.h
index ade4b00a38..8d6a2bafa6 100644
--- a/engines/sherlock/tattoo/tattoo_scene.h
+++ b/engines/sherlock/tattoo/tattoo_scene.h
@@ -34,7 +34,7 @@ namespace Tattoo {
extern const int FS_TRANS[8];
enum {
- STARTING_GAME_SCENE = 1, STARTING_INTRO_SCENE = 91, OVERHEAD_MAP2 = 90, OVERHEAD_MAP = 100
+ STARTING_GAME_SCENE = 1, WEARY_PUNT = 52, STARTING_INTRO_SCENE = 91, OVERHEAD_MAP2 = 90, OVERHEAD_MAP = 100
};
struct SceneTripEntry {
diff --git a/engines/sherlock/tattoo/tattoo_user_interface.cpp b/engines/sherlock/tattoo/tattoo_user_interface.cpp
index 76d1af1435..a3742109e8 100644
--- a/engines/sherlock/tattoo/tattoo_user_interface.cpp
+++ b/engines/sherlock/tattoo/tattoo_user_interface.cpp
@@ -556,7 +556,7 @@ void TattooUserInterface::displayObjectNames() {
Common::Point mousePos = events.mousePos();
_arrowZone = -1;
- if (_bgFound == -1 || scene._currentScene == 90) {
+ if (_bgFound == -1 || scene._currentScene == OVERHEAD_MAP2) {
for (uint idx = 0; idx < scene._exits.size() && _arrowZone == -1; ++idx) {
Exit &exit = scene._exits[idx];
if (exit.contains(mousePos))
diff --git a/engines/sherlock/tattoo/widget_talk.cpp b/engines/sherlock/tattoo/widget_talk.cpp
index a5afa0c263..b0cc7bcfb2 100644
--- a/engines/sherlock/tattoo/widget_talk.cpp
+++ b/engines/sherlock/tattoo/widget_talk.cpp
@@ -243,7 +243,7 @@ void WidgetTalk::handleEvents() {
banishWindow();
ui._menuMode = scene._labTableScene ? LAB_MODE : STD_MODE;
- if (scene._currentScene == 52)
+ if (scene._currentScene == WEARY_PUNT)
callParrotFile = true;
}
diff --git a/engines/sherlock/tattoo/widget_tooltip.cpp b/engines/sherlock/tattoo/widget_tooltip.cpp
index 9dfa1ea86c..3d2ca1f7f7 100644
--- a/engines/sherlock/tattoo/widget_tooltip.cpp
+++ b/engines/sherlock/tattoo/widget_tooltip.cpp
@@ -22,6 +22,7 @@
#include "sherlock/tattoo/widget_tooltip.h"
#include "sherlock/tattoo/tattoo_map.h"
+#include "sherlock/tattoo/tattoo_scene.h"
#include "sherlock/tattoo/tattoo_user_interface.h"
#include "sherlock/tattoo/tattoo.h"
@@ -184,7 +185,7 @@ void WidgetSceneTooltip::handleEvents() {
Common::String str;
if (ui._bgFound != -1) {
// Clear the Arrow Zone fields so it won't think we're displaying an Arrow Zone cursor
- if (scene._currentScene != 90) // RRR Take out the cludge for room 90
+ if (scene._currentScene != OVERHEAD_MAP2)
ui._arrowZone = ui._oldArrowZone = -1;
// Get the description string