remove pointless loop

This commit is contained in:
Ian Curtis 2016-05-07 15:45:02 +00:00
parent ded3168060
commit 242cddac2d

View file

@ -903,8 +903,6 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data)
// copy face attributes
for (i = 0; i < p.number; i++) {
if ((ph.header[1] & 2) == 0) {
UINT32 colorIdx = (ph.header[4] >> 8) & 0x7FF;
p.faceColour[2] = (m_polyRAM[0x400 + colorIdx] & 0xFF) / 255.f;
@ -930,7 +928,6 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data)
else {
p.faceColour[3] = ph.Transparency() / 255.f;
}
}
// if we have flat shading, we can't re-use normals from shared vertices
for (i = 0; i < p.number && !ph.SmoothShading(); i++) {