- GL handling of new portal data organization.

This also fixes some oversights with plane and horizon portals which were included in several checks.
This commit is contained in:
Christoph Oelckers 2016-04-20 20:08:53 +02:00
commit 1c7b512cc0
11 changed files with 143 additions and 134 deletions

View file

@ -975,14 +975,14 @@ static void CopyPortal(int sectortag, int plane, unsigned pnum, double alpha, bo
{
if (lines[j].args[0] == 0)
{
lines[j].skybox = origin;
lines[j].portaltransferred = pnum;
}
else
{
FLineIdIterator itr(lines[j].args[0]);
while ((s = itr.Next()) >= 0)
{
lines[s].skybox = origin;
lines[s].portaltransferred = pnum;
}
}
}