forked from Mirrors/openclonk
Revert "fix clipping bug during the raytracing phase" (no fix after all)
This reverts commit 7a47c95c08
.
issue1247
parent
7a47c95c08
commit
117758848c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue