- Add a couple of assertions.

SVN r1774 (trunk)
This commit is contained in:
Randy Heit 2009-08-29 02:22:06 +00:00
parent 7a89872b63
commit 90b4be5d28

View file

@ -183,9 +183,11 @@ void P_Attach3dMidtexLinesToSector(sector_t *sector, int lineid, int tag, bool c
scrollplane.AttachedLines.Push(&lines[i]); scrollplane.AttachedLines.Push(&lines[i]);
v = int(lines[i].frontsector - sectors); v = int(lines[i].frontsector - sectors);
assert(v < numsectors);
found_sectors[v>>3] |= 1 << (v&7); found_sectors[v>>3] |= 1 << (v&7);
v = int(lines[i].backsector - sectors); v = int(lines[i].backsector - sectors);
assert(v < numsectors);
found_sectors[v>>3] |= 1 << (v&7); found_sectors[v>>3] |= 1 << (v&7);
} }
} }