diff options
author | Travis Howell | 2005-09-30 08:00:12 +0000 |
---|---|---|
committer | Travis Howell | 2005-09-30 08:00:12 +0000 |
commit | d659246376de6c85b1a004c97d9a23906867d8b5 (patch) | |
tree | 310709249a6d0fb6cf5f40c3661beba44a71dbbc /scumm | |
parent | 65c18557593bc9d25b68987055dd8f25a3d94317 (diff) | |
download | scummvm-rg350-d659246376de6c85b1a004c97d9a23906867d8b5.tar.gz scummvm-rg350-d659246376de6c85b1a004c97d9a23906867d8b5.tar.bz2 scummvm-rg350-d659246376de6c85b1a004c97d9a23906867d8b5.zip |
Handle overflow like original SCUMM3 games.
Should fix bug #1306269
svn-id: r18902
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/string.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index 04a415530c..773d19782b 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -429,7 +429,11 @@ loc_avoid_ks_fe: } else _talkDelay += (int)VAR(VAR_CHARINC); - // Handle line breaks for V1-V3 + // Handle line overflow for V3 + if (_version == 3 && _charset->_nextLeft > _screenWidth) { + _charset->_nextLeft = _screenWidth; + } + // Handle line breaks for V1-V2 if (_version <= 2 && _charset->_nextLeft > _screenWidth) { goto newLine; } |