aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-09-30 08:00:12 +0000
committerTravis Howell2005-09-30 08:00:12 +0000
commitd659246376de6c85b1a004c97d9a23906867d8b5 (patch)
tree310709249a6d0fb6cf5f40c3661beba44a71dbbc /scumm
parent65c18557593bc9d25b68987055dd8f25a3d94317 (diff)
downloadscummvm-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.cpp6
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;
}