aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-14 14:36:29 +0100
committerEugene Sandulenko2016-02-14 17:13:24 +0100
commit9d9fefb17a24c98681ae4bd660d98aa0e67209f9 (patch)
treeabd065fd4b54aa95e2bfe864ee89b179795571c9 /engines/wage
parent33b8a265c556d75d01a9ca24233ca250526270e4 (diff)
downloadscummvm-rg350-9d9fefb17a24c98681ae4bd660d98aa0e67209f9.tar.gz
scummvm-rg350-9d9fefb17a24c98681ae4bd660d98aa0e67209f9.tar.bz2
scummvm-rg350-9d9fefb17a24c98681ae4bd660d98aa0e67209f9.zip
WAGE: Simplify polygon reading code
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/design.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp
index e3cae0f633..9178482c8e 100644
--- a/engines/wage/design.cpp
+++ b/engines/wage/design.cpp
@@ -297,7 +297,7 @@ void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in,
int y2 = y1;
int x2 = x1;
int b = in.readSByte();
- if ((b & 0xff) == 0x80) {
+ if (b == -128) {
y2 = in.readSint16BE();
numBytes -= 3;
} else {
@@ -305,7 +305,7 @@ void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in,
numBytes -= 1;
}
b = in.readSByte();
- if ((b & 0xff) == 0x80) {
+ if (b == -128) {
x2 = in.readSint16BE();
numBytes -= 3;
} else {