- 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
|
|
@ -45,9 +45,10 @@
|
|||
|
||||
static void P_SlopeLineToPoint (int lineid, fixed_t x, fixed_t y, fixed_t z, bool slopeCeil)
|
||||
{
|
||||
int linenum = -1;
|
||||
int linenum;
|
||||
|
||||
while ((linenum = P_FindLineFromID (lineid, linenum)) != -1)
|
||||
FLineIdIterator itr(lineid);
|
||||
while ((linenum = itr.Next()) >= 0)
|
||||
{
|
||||
const line_t *line = &lines[linenum];
|
||||
sector_t *sec;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue