mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 08:30:49 +00:00
Fix sky floodfill bug
This commit is contained in:
parent
a90a22e056
commit
1b3d50951a
1 changed files with 2 additions and 7 deletions
|
@ -164,8 +164,6 @@ void RenderPolyPlane::Render(const TriMatrix &worldToClip, subsector_t *sub, uin
|
||||||
double topfloorz2 = MIN(backceilz2, frontceilz2);
|
double topfloorz2 = MIN(backceilz2, frontceilz2);
|
||||||
double bottomceilz1 = MAX(frontfloorz1, backfloorz1);
|
double bottomceilz1 = MAX(frontfloorz1, backfloorz1);
|
||||||
double bottomceilz2 = MAX(frontfloorz2, backfloorz2);
|
double bottomceilz2 = MAX(frontfloorz2, backfloorz2);
|
||||||
double bottomfloorz1 = frontfloorz1;
|
|
||||||
double bottomfloorz2 = frontfloorz2;
|
|
||||||
double middleceilz1 = topfloorz1;
|
double middleceilz1 = topfloorz1;
|
||||||
double middleceilz2 = topfloorz2;
|
double middleceilz2 = topfloorz2;
|
||||||
double middlefloorz1 = MIN(bottomceilz1, middleceilz1);
|
double middlefloorz1 = MIN(bottomceilz1, middleceilz1);
|
||||||
|
@ -179,11 +177,8 @@ void RenderPolyPlane::Render(const TriMatrix &worldToClip, subsector_t *sub, uin
|
||||||
skyBottomz1 = middlefloorz1;
|
skyBottomz1 = middlefloorz1;
|
||||||
skyBottomz2 = middlefloorz2;
|
skyBottomz2 = middlefloorz2;
|
||||||
}
|
}
|
||||||
else
|
else if (bothSkyCeiling)
|
||||||
{
|
{
|
||||||
bool topwall = (topceilz1 > topfloorz1 || topceilz2 > topfloorz2) && line->sidedef && !bothSkyCeiling;
|
|
||||||
bool bottomwall = (bottomfloorz1 < bottomceilz1 || bottomfloorz2 < bottomceilz2) && line->sidedef;
|
|
||||||
if ((ceiling && !topwall) || (!ceiling && !bottomwall))
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue