- while we're at it, let's also wrap line ID searches in an iterator class so that we can do multiple IDs per line later as well.
This commit is contained in:
parent
425e5b9ffc
commit
47543bb766
10 changed files with 103 additions and 57 deletions
|
|
@ -348,7 +348,9 @@ void P_AddSectorLinksByID(sector_t *control, int id, INTBOOL ceiling)
|
|||
{
|
||||
extsector_t::linked::plane &scrollplane = ceiling? control->e->Linked.Ceiling : control->e->Linked.Floor;
|
||||
|
||||
for(int line = -1; (line = P_FindLineFromID(id, line)) >= 0; )
|
||||
FLineIdIterator itr(id);
|
||||
int line;
|
||||
while ((line = itr.Next()) >= 0)
|
||||
{
|
||||
line_t *ld = &lines[line];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue