From 56423709482a54f6b65488b80bd674b1965c48c2 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sat, 30 Jan 2016 21:07:16 +0100 Subject: SHERLOCK: SS: don't setup font for non-play demo Do not setup font for non-playable demo Non-playable demo does not have any font at all Fixes non-playable demo not working --- engines/sherlock/fonts.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/sherlock') diff --git a/engines/sherlock/fonts.cpp b/engines/sherlock/fonts.cpp index 4d0991a47c..9b58eea17c 100644 --- a/engines/sherlock/fonts.cpp +++ b/engines/sherlock/fonts.cpp @@ -53,6 +53,15 @@ void Fonts::setFont(int fontNum) { // Discard previous font delete _font; + if (IS_SERRATED_SCALPEL) { + // Scalpel + if ((_vm->isDemo()) && (!_vm->_interactiveFl)) { + // Do not set up any font for the non-interactive demo of scalpel + // The non-interactive demo does not contain any font at all + return; + } + } + Common::String fontFilename; if (_vm->getPlatform() != Common::kPlatform3DO) { -- cgit v1.2.3