fix parenthesis error

This commit is contained in:
Ian Curtis 2016-03-22 21:59:51 +00:00
parent e7eb912eaa
commit 8ea5978093
3 changed files with 195 additions and 195 deletions

View file

@ -581,7 +581,7 @@ static bool IsDynamicModel(const UINT32 *data)
unsigned numVerts = (data[0]&0x40 ? 4 : 3);
// Deduct number of reused verts
numVerts -= sharedVerts[data[0]&0xf];
done = data[1] & 4 > 0;
done = (data[1] & 4) > 0;
// Skip header and vertices to next polygon
data += 7 + numVerts * 4;
}

View file

@ -753,7 +753,7 @@ struct VBORef *CLegacy3D::CacheModel(ModelCache *Cache, int lutIdx, UINT16 texOf
bool validPoly = (P.header[0] & 0x300) != 0x300;
// Obtain basic polygon parameters
done = P.header[1] & 4 > 0; // last polygon?
done = (P.header[1] & 4) > 0; // last polygon?
P.numVerts = (P.header[0]&0x40)?4:3;
// Texture data