mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
fix parenthesis error
This commit is contained in:
parent
e7eb912eaa
commit
8ea5978093
|
@ -581,7 +581,7 @@ static bool IsDynamicModel(const UINT32 *data)
|
||||||
unsigned numVerts = (data[0]&0x40 ? 4 : 3);
|
unsigned numVerts = (data[0]&0x40 ? 4 : 3);
|
||||||
// Deduct number of reused verts
|
// Deduct number of reused verts
|
||||||
numVerts -= sharedVerts[data[0]&0xf];
|
numVerts -= sharedVerts[data[0]&0xf];
|
||||||
done = data[1] & 4 > 0;
|
done = (data[1] & 4) > 0;
|
||||||
// Skip header and vertices to next polygon
|
// Skip header and vertices to next polygon
|
||||||
data += 7 + numVerts * 4;
|
data += 7 + numVerts * 4;
|
||||||
}
|
}
|
||||||
|
|
|
@ -753,7 +753,7 @@ struct VBORef *CLegacy3D::CacheModel(ModelCache *Cache, int lutIdx, UINT16 texOf
|
||||||
bool validPoly = (P.header[0] & 0x300) != 0x300;
|
bool validPoly = (P.header[0] & 0x300) != 0x300;
|
||||||
|
|
||||||
// Obtain basic polygon parameters
|
// 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;
|
P.numVerts = (P.header[0]&0x40)?4:3;
|
||||||
|
|
||||||
// Texture data
|
// Texture data
|
||||||
|
|
Loading…
Reference in a new issue