- fixed loop ordering in P_SetRenderSector.

This commit is contained in:
Christoph Oelckers 2017-01-19 01:39:05 +01:00
parent 8256f25a84
commit 9f550941d2

View file

@ -1456,7 +1456,7 @@ void P_SetRenderSector()
segs[i].PartnerSeg = segs[i].PartnerSeg->PartnerSeg = nullptr;
}
}
}
for (i = 0; i < numsegs; i++)
{
if (segs[i].PartnerSeg != nullptr && segs[i].PartnerSeg->PartnerSeg != &segs[i])
@ -1464,7 +1464,6 @@ void P_SetRenderSector()
segs[i].PartnerSeg = nullptr;
}
}
}
// look up sector number for each subsector
for (i = 0; i < numsubsectors; i++)