From 4e5c8d35f7e133e2e72a846fdbd54900c91eeb73 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 21 Jul 2015 22:44:34 -0400 Subject: SHERLOCK: RT: Further fixes for credits display --- engines/sherlock/tattoo/tattoo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/sherlock/tattoo/tattoo.cpp b/engines/sherlock/tattoo/tattoo.cpp index 2e78fd5af0..90d2e5d958 100644 --- a/engines/sherlock/tattoo/tattoo.cpp +++ b/engines/sherlock/tattoo/tattoo.cpp @@ -260,7 +260,7 @@ void TattooEngine::drawCredits() { for (uint idx = 0; idx < _creditLines.size() && _creditLines[idx]._position.y < _screen->h(); ++idx) { if (screenRect.contains(_creditLines[idx]._position)) { - if (_creditLines[idx]._position.x >= 65536) { + if (!_creditLines[idx]._line2.empty()) { int x1 = _creditLines[idx]._position.x; int x2 = x1 + _creditLines[idx]._xOffset; const Common::String &line1 = _creditLines[idx]._line; @@ -394,7 +394,7 @@ void TattooEngine::doHangManPuzzle() { lines[line].x += paperBounds.left; lines[line].y += paperBounds.top; - for (i = 0; i <= numWide; ++i) + for (i = 0; i <= (size_t)numWide; ++i) answers[line][i] = 0; } -- cgit v1.2.3