Skip to content

Commit

Permalink
WAGE: Simplify polygon reading code
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent 33b8a26 commit 9d9fefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/wage/design.cpp
Expand Up @@ -297,15 +297,15 @@ 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 {
y2 += b;
numBytes -= 1;
}
b = in.readSByte();
if ((b & 0xff) == 0x80) {
if (b == -128) {
x2 = in.readSint16BE();
numBytes -= 3;
} else {
Expand Down

0 comments on commit 9d9fefb

Please sign in to comment.