- added some code to discard lines that could block a view into a portal area.

With this code I can run the Eternity map rf_kerkr.wad without visual glitches.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@690 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2009-12-30 17:19:22 +00:00
parent 7c30ee567f
commit a4d1f4d5b2
11 changed files with 196 additions and 63 deletions

View file

@ -898,16 +898,14 @@ void P_SetupPortals()
fixed_t deltay2 = points[j]->Mate->y - points[j]->y;
if (deltax1 == deltax2 && deltay1 == deltay2)
{
if (points[j]->Sector->FloorSkyBox == points[j])
points[j]->Sector->FloorSkyBox == points[i];
if (points[j]->Sector->FloorSkyBox == points[j]->Mate)
points[j]->Sector->FloorSkyBox = points[i]->Mate;
if (points[j]->Sector->CeilingSkyBox == points[j])
points[j]->Sector->CeilingSkyBox == points[i];
if (points[j]->Sector->CeilingSkyBox == points[j]->Mate)
points[j]->Sector->CeilingSkyBox = points[i]->Mate;
points[j]->special1 = 1;
break;
}
}
}
}