aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-11-19 22:02:59 +0000
committerPaweł Kołodziejski2004-11-19 22:02:59 +0000
commit1f6bcee124c4889b7dae3a100034813909b6b81f (patch)
treef79bf6fc6960d3942b6a6f1d1dec28353fce1a37
parentb08b04b5505847470a51078ce161ed98700bd2b3 (diff)
downloadscummvm-rg350-1f6bcee124c4889b7dae3a100034813909b6b81f.tar.gz
scummvm-rg350-1f6bcee124c4889b7dae3a100034813909b6b81f.tar.bz2
scummvm-rg350-1f6bcee124c4889b7dae3a100034813909b6b81f.zip
not needed chech for unsigned type
svn-id: r15838
-rw-r--r--gui/walkthrough.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/walkthrough.cpp b/gui/walkthrough.cpp
index b3a7de5eac..e54add5584 100644
--- a/gui/walkthrough.cpp
+++ b/gui/walkthrough.cpp
@@ -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 {