aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorPaul Gilbert2009-07-05 07:21:17 +0000
committerPaul Gilbert2009-07-05 07:21:17 +0000
commit48d164a498d188793374921e572aac15f13366c0 (patch)
treecce769d653c7932c41c32a26d2bce9f2b024633a /engines/cruise
parenteba5780fc062d26ba2d70d3bc438265a43ef5411 (diff)
downloadscummvm-rg350-48d164a498d188793374921e572aac15f13366c0.tar.gz
scummvm-rg350-48d164a498d188793374921e572aac15f13366c0.tar.bz2
scummvm-rg350-48d164a498d188793374921e572aac15f13366c0.zip
Bugfix for word-wrapping of text, which sometimes failed for strings with special characters
svn-id: r42115
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/font.cpp b/engines/cruise/font.cpp
index d5010b2bf8..8da3621bdc 100644
--- a/engines/cruise/font.cpp
+++ b/engines/cruise/font.cpp
@@ -242,7 +242,7 @@ int32 prepareWordRender(int32 inRightBorder_X, int16 wordSpacingWidth,
if (character == '|' || !character) {
finish = 1;
} else {
- if (charData) {
+ if (charData >= 0) {
if (pixelCount + wordSpacingWidth +
(int16)fontData[charData].charWidth >= inRightBorder_X) {
finish = 1;