From 6f3d87314ea737d8e62fb4a69f00c047713c8e6f Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 4 Jun 2007 05:05:02 +0000 Subject: Change printChar variables to signed, to allow removal of work around for The Feeble Files. svn-id: r27076 --- engines/agos/charset.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp index 40b0a84390..e8eb35586d 100644 --- a/engines/agos/charset.cpp +++ b/engines/agos/charset.cpp @@ -539,19 +539,7 @@ void AGOSEngine::justifyOutPut(byte chr) { doOutput(&chr, 1); clsCheck(_textWindow); } else if (chr == 0 || chr == ' ' || chr == 10) { - bool fit; - - // Note that in FF, _printCharCurPos may be greater than - // _printCharMaxPos. In Simon, that is probably prevented by - // testing if _printCharCurPos == _printCharMaxPos below. - - if (getGameType() == GType_FF || getGameType() == GType_PP) { - fit = _printCharMaxPos > _printCharCurPos + _printCharPixelCount; - } else { - fit = _printCharMaxPos - _printCharCurPos >= _printCharPixelCount; - } - - if (fit) { + if (_printCharMaxPos - _printCharCurPos >= _printCharPixelCount) { _printCharCurPos += _printCharPixelCount; doOutput(_lettersToPrintBuf, _numLettersToPrint); -- cgit v1.2.3