mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- fixed edge case in wall sorter when the camera is exactly on a line that's being checked.
This commit is contained in:
parent
345275db5d
commit
e0dc261dfd
1 changed files with 3 additions and 3 deletions
|
@ -297,7 +297,7 @@ int BunchDrawer::WallInFront(int wall1, int wall2)
|
|||
if ((t1 * t2) >= 0)
|
||||
{
|
||||
t2 = PointOnLineSide(viewx, viewy, x1s, y1s, dx, dy);
|
||||
return((t2 * t1) < 0);
|
||||
return((t2 * t1) <= 0);
|
||||
}
|
||||
|
||||
dx = x2e - x2s;
|
||||
|
@ -313,7 +313,7 @@ int BunchDrawer::WallInFront(int wall1, int wall2)
|
|||
if ((t1 * t2) >= 0)
|
||||
{
|
||||
t2 = PointOnLineSide(viewx, viewy, x2s, y2s, dx, dy);
|
||||
return((t2 * t1) >= 0);
|
||||
return((t2 * t1) > 0);
|
||||
}
|
||||
return(-2);
|
||||
}
|
||||
|
@ -525,7 +525,7 @@ void BunchDrawer::ProcessSector(int sectnum, bool portal)
|
|||
|
||||
void BunchDrawer::RenderScene(const int* viewsectors, unsigned sectcount, bool portal)
|
||||
{
|
||||
//Printf("----------------------------------------- \n");
|
||||
//Printf("----------------------------------------- \nstart at sector %d\n", viewsectors[0]);
|
||||
auto process = [&]()
|
||||
{
|
||||
for (unsigned i = 0; i < sectcount; i++)
|
||||
|
|
Loading…
Reference in a new issue