mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 08:41:59 +00:00
- use 'for' iterator syntax to check touching_renderlists.
This commit is contained in:
parent
663b305eec
commit
5723f10cc3
2 changed files with 2 additions and 6 deletions
|
@ -6707,10 +6707,8 @@ void P_UnlinkRenderSectors(AActor* thing)
|
|||
{
|
||||
if (thing->touching_render_sectors)
|
||||
{
|
||||
for (std::forward_list<sector_t*>::iterator it = thing->touching_render_sectors->begin();
|
||||
it != thing->touching_render_sectors->end(); it++)
|
||||
for (auto sec : *thing->touching_render_sectors)
|
||||
{
|
||||
sector_t* sec = (*it);
|
||||
if (sec->touching_render_things)
|
||||
{
|
||||
sec->touching_render_things->remove(thing);
|
||||
|
|
|
@ -1234,10 +1234,8 @@ void R_AddSprites (sector_t *sec, int lightlevel, int fakeside)
|
|||
spriteshade = LIGHT2SHADE(lightlevel + r_actualextralight);
|
||||
|
||||
// Handle all things in sector.
|
||||
for (std::forward_list<AActor*>::iterator it = sec->touching_render_things->begin();
|
||||
it != sec->touching_render_things->end(); it++)
|
||||
for (auto thing : *sec->touching_render_things)
|
||||
{
|
||||
thing = (*it);
|
||||
if (thing->validcount == validcount) continue;
|
||||
thing->validcount = validcount;
|
||||
|
||||
|
|
Loading…
Reference in a new issue