Skip to content

Commit

Permalink
WAGE: Fix polygon rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 27, 2015
1 parent 3adda82 commit 36e4722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/wage/design.cpp
Expand Up @@ -212,15 +212,15 @@ 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 {
y2 += b;
numBytes -= 1;
}
b = in.readSByte();
if (b == (byte) 0x80) {
if ((b & 0xff) == 0x80) {
x2 = in.readSint16BE();
numBytes -= 3;
} else {
Expand Down

0 comments on commit 36e4722

Please sign in to comment.