diff options
author | Torbjörn Andersson | 2006-05-30 12:13:34 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-30 12:13:34 +0000 |
commit | 2ce9edd7f77b0e003fe0afa57617783b3906eb8e (patch) | |
tree | 35c6b5ef3e6d694db0b926867b2c32175a6b75a0 /engines | |
parent | 0284becc9ded545a8df9b0f2f3374efcf5d837b1 (diff) | |
download | scummvm-rg350-2ce9edd7f77b0e003fe0afa57617783b3906eb8e.tar.gz scummvm-rg350-2ce9edd7f77b0e003fe0afa57617783b3906eb8e.tar.bz2 scummvm-rg350-2ce9edd7f77b0e003fe0afa57617783b3906eb8e.zip |
Fixed subtitles Y coordinate in characterSays(). I have no way of confirming
this, but it seems obvious to me that it's trying to subtract the character's
scaled height, and this is how that's calculated elsewhere as far as I can see.
svn-id: r22769
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/text.cpp b/engines/kyra/text.cpp index 8bb946cf37..3c2f290645 100644 --- a/engines/kyra/text.cpp +++ b/engines/kyra/text.cpp @@ -267,7 +267,7 @@ void KyraEngine::characterSays(const char *chatStr, int8 charNum, int8 chatDurat int lineNum = _text->buildMessageSubstrings(processedString); int16 yPos = _characterList[charNum].y1; - yPos -= _scaleTable[charNum] * _characterList[charNum].height; + yPos -= ((_scaleTable[yPos] * _characterList[charNum].height) >> 8); yPos -= 8; yPos -= lineNum * 10; |