mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 02:30:58 +00:00
- and finally the iterators in the backend.
This commit is contained in:
parent
db4f0d041e
commit
4f7c0b696c
3 changed files with 15 additions and 39 deletions
|
@ -1742,7 +1742,8 @@ void renderDrawMapView(int32_t dax, int32_t day, int32_t zoome, int16_t ang)
|
|||
|
||||
|
||||
//Collect floor sprites to draw
|
||||
for (i=headspritesect[s]; i>=0; i=nextspritesect[i])
|
||||
SectIterator it(s);
|
||||
while ((i = it.NextIndex()) >= 0)
|
||||
{
|
||||
if (sprite[i].cstat & 32768)
|
||||
continue;
|
||||
|
@ -2525,7 +2526,8 @@ void neartag(int32_t xs, int32_t ys, int32_t zs, int16_t sectnum, int16_t ange,
|
|||
if (tagsearch & 4)
|
||||
continue; // skip sprite search
|
||||
|
||||
for (z=headspritesect[dasector]; z>=0; z=nextspritesect[z])
|
||||
SectIterator it(dasector);
|
||||
while ((z = it.NextIndex()) >= 0)
|
||||
{
|
||||
auto const spr = (uspriteptr_t)&sprite[z];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue