aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
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;
}