diff options
author | Paul Gilbert | 2015-07-21 22:44:34 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-21 22:44:34 -0400 |
commit | 4e5c8d35f7e133e2e72a846fdbd54900c91eeb73 (patch) | |
tree | 09029b026d5252ef64f8af2a5578fa95431b75a7 /engines | |
parent | 15c8917c01aca6b5ff2d20c3a2678e284dce648a (diff) | |
download | scummvm-rg350-4e5c8d35f7e133e2e72a846fdbd54900c91eeb73.tar.gz scummvm-rg350-4e5c8d35f7e133e2e72a846fdbd54900c91eeb73.tar.bz2 scummvm-rg350-4e5c8d35f7e133e2e72a846fdbd54900c91eeb73.zip |
SHERLOCK: RT: Further fixes for credits display
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/tattoo/tattoo.cpp | 4 |
1 files 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; } |