- implemented 'copy portal to wall' linedef type.

This commit is contained in:
Christoph Oelckers 2016-01-11 22:44:53 +01:00
commit 65022b780a
8 changed files with 75 additions and 9 deletions

View file

@ -1044,6 +1044,23 @@ static void CopyPortal(int sectortag, int plane, ASkyViewpoint *origin, fixed_t
}
}
}
if (tolines && lines[j].special == Sector_SetPortal &&
lines[j].args[1] == 5 &&
lines[j].args[3] == sectortag)
{
if (lines[j].args[0] == 0)
{
lines[j].skybox = origin;
}
else
{
FLineIdIterator itr(lines[j].args[0]);
while ((s = itr.Next()) >= 0)
{
lines[s].skybox = origin;
}
}
}
}
}