Revert "fix clipping bug during the raytracing phase" (no fix after all)

This reverts commit 7a47c95c08.
issue1247
Tobias Zwick 2014-11-23 21:33:28 +01:00
parent 7a47c95c08
commit 117758848c
1 changed files with 2 additions and 3 deletions

View File

@ -162,14 +162,13 @@ void C4FoWLightSection::Update(C4Rect RectIn)
#endif
C4FoWBeam *endBeam = NULL;
int32_t startY = Rect.GetBottom();
if(!beam) return;
do {
while (beam && !beam->isLeft(rx, ry)) {
if (beam->isDirty() && beam->getLeftEndY() <= Rect.y + Rect.Hgt) {
endBeam = beam;
startY = Min(startY, beam->getLeftEndY());
}
beam = beam->getNext();
} while(beam && !beam->isLeft(rx, ry));
}
// Can skip scan completely?
if (!endBeam)