From 6511f2ec2cc8bb1741e989e8d924a4708f3f04a4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 23 Aug 2015 16:01:32 -0400 Subject: SHERLOCK: Replace various scene numbers with enum values --- engines/sherlock/tattoo/tattoo_scene.h | 2 +- engines/sherlock/tattoo/tattoo_user_interface.cpp | 2 +- engines/sherlock/tattoo/widget_talk.cpp | 2 +- engines/sherlock/tattoo/widget_tooltip.cpp | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/sherlock/tattoo') 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 -- cgit v1.2.3