mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- allow a link between the same sector's floor and ceiling.
This commit is contained in:
parent
0eebaf9f6b
commit
9aff224891
1 changed files with 5 additions and 3 deletions
|
@ -329,11 +329,13 @@ bool P_AddSectorLinks(sector_t *control, int tag, INTBOOL ceiling, int movetype)
|
||||||
FSectorTagIterator itr(tag);
|
FSectorTagIterator itr(tag);
|
||||||
while ((sec = itr.Next()) >= 0)
|
while ((sec = itr.Next()) >= 0)
|
||||||
{
|
{
|
||||||
// Don't attach to self!
|
// Don't attach to self (but allow attaching to this sector's oposite plane.
|
||||||
if (control != &level.sectors[sec])
|
if (control == &level.sectors[sec])
|
||||||
{
|
{
|
||||||
AddSingleSector(scrollplane, &level.sectors[sec], movetype);
|
if (ceiling == sector_t::floor && movetype & LINK_FLOOR) continue;
|
||||||
|
if (ceiling == sector_t::ceiling && movetype & LINK_CEILING) continue;
|
||||||
}
|
}
|
||||||
|
AddSingleSector(scrollplane, &level.sectors[sec], movetype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue