not needed chech for unsigned type

svn-id: r15838
This commit is contained in:
Paweł Kołodziejski 2004-11-19 22:02:59 +00:00
parent b08b04b550
commit 1f6bcee124

View File

@ -51,7 +51,7 @@ static int getNextWordLength(byte *src, int maxLength) {
for (l = 0; l < maxLength; l++) {
byte tmp = src[l];
if ((tmp >= 0) && (tmp <= ' '))
if (tmp <= ' ')
break;
}
@ -84,7 +84,7 @@ bool WalkthroughDialog::loadWalkthroughText() {
int wordLength = getNextWordLength(currentBuffer, _lineWidth);
if (((currentLinePos + wordLength) < _lineWidth) &&
((*currentBuffer != 0x0a) && (*currentBuffer != 0x0d))) {
if ((*currentBuffer >= 0) && (*currentBuffer <= ' ')) {
if (*currentBuffer <= ' ') {
lineBuffer[currentLinePos++] = ' ';
currentBuffer++;
} else {