diff options
-rw-r--r-- | engines/agos/charset.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp index 9a37d90c33..005b3fe549 100644 --- a/engines/agos/charset.cpp +++ b/engines/agos/charset.cpp @@ -543,7 +543,15 @@ void AGOSEngine::justifyOutPut(byte chr) { doOutput(&chr, 1); clsCheck(_textWindow); } else if (chr == 0 || chr == ' ' || chr == 10) { - if (_printCharMaxPos - _printCharCurPos >= _printCharPixelCount) { + bool fit; + + if (getGameType() == GType_FF || getGameType() == GType_PP) { + fit = _printCharMaxPos - _printCharCurPos > _printCharPixelCount; + } else { + fit = _printCharMaxPos - _printCharCurPos >= _printCharPixelCount; + } + + if (_printCharMaxPos - _printCharCurPos > _printCharPixelCount) { _printCharCurPos += _printCharPixelCount; doOutput(_lettersToPrintBuf, _numLettersToPrint); |