- 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:
Christoph Oelckers 2015-04-15 00:47:06 +02:00
commit 47543bb766
10 changed files with 103 additions and 57 deletions

View file

@ -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;