aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-20 20:13:31 -0400
committerPaul Gilbert2015-08-20 20:13:31 -0400
commitdff033fc7d4902952edb67164afbd907e055d234 (patch)
tree528d364347d1c842ff76663251182a9f43f72acf /engines/sherlock/tattoo
parent22bb8e2f57138a7acfde61fc3cd806bafd10222b (diff)
downloadscummvm-rg350-dff033fc7d4902952edb67164afbd907e055d234.tar.gz
scummvm-rg350-dff033fc7d4902952edb67164afbd907e055d234.tar.bz2
scummvm-rg350-dff033fc7d4902952edb67164afbd907e055d234.zip
SHERLOCK: RT: Don't record journal entries during Watson's prologue
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r--engines/sherlock/tattoo/tattoo_journal.cpp8
-rw-r--r--engines/sherlock/tattoo/tattoo_journal.h6
2 files changed, 14 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_journal.cpp b/engines/sherlock/tattoo/tattoo_journal.cpp
index 861f7099df..93970abab1 100644
--- a/engines/sherlock/tattoo/tattoo_journal.cpp
+++ b/engines/sherlock/tattoo/tattoo_journal.cpp
@@ -903,6 +903,14 @@ int TattooJournal::getFindName(bool printError) {
return result;
}
+void TattooJournal::record(int converseNum, int statementNum, bool replyOnly) {
+ TattooEngine &vm = *(TattooEngine *)_vm;
+
+ // Only record activity in the Journal if the player is Holmes (i.e. we're paast the prologoue)
+ if (_vm->readFlags(FLAG_PLAYER_IS_HOLMES) && !vm._runningProlog)
+ Journal::record(converseNum, statementNum, replyOnly);
+}
+
} // End of namespace Tattoo
} // End of namespace Sherlock
diff --git a/engines/sherlock/tattoo/tattoo_journal.h b/engines/sherlock/tattoo/tattoo_journal.h
index 5e5cfda8c2..cb45466120 100644
--- a/engines/sherlock/tattoo/tattoo_journal.h
+++ b/engines/sherlock/tattoo/tattoo_journal.h
@@ -94,6 +94,12 @@ public:
* Draw the journal background, frame, and interface buttons
*/
virtual void drawFrame();
+
+ /**
+ * Records statements that are said, in the order which they are said. The player
+ * can then read the journal to review them
+ */
+ virtual void record(int converseNum, int statementNum, bool replyOnly = false);
};
} // End of namespace Tattoo