aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorEugene Sandulenko2015-12-19 22:40:57 +0100
committerEugene Sandulenko2015-12-27 15:40:56 +0100
commit36e4722922ed6d92bac3ef7fe6d45511fb1a17c2 (patch)
tree9b2a2f5c91ec0a5b328f7a53ffcd7c7299a02fe5 /engines/wage
parent3adda8284f6232f0a2728d325890135c8b0fa9ac (diff)
downloadscummvm-rg350-36e4722922ed6d92bac3ef7fe6d45511fb1a17c2.tar.gz
scummvm-rg350-36e4722922ed6d92bac3ef7fe6d45511fb1a17c2.tar.bz2
scummvm-rg350-36e4722922ed6d92bac3ef7fe6d45511fb1a17c2.zip
WAGE: Fix polygon rendering
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 42dca86b11..8b3a661e47 100644
--- a/engines/wage/design.cpp
+++ b/engines/wage/design.cpp
@@ -212,7 +212,7 @@ void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in, boo
int y2 = y1;
int x2 = x1;
int b = in.readSByte();
- if (b == (byte)0x80) {
+ if ((b & 0xff) == 0x80) {
y2 = in.readSint16BE();
numBytes -= 3;
} else {
@@ -220,7 +220,7 @@ void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in, boo
numBytes -= 1;
}
b = in.readSByte();
- if (b == (byte) 0x80) {
+ if ((b & 0xff) == 0x80) {
x2 = in.readSint16BE();
numBytes -= 3;
} else {