MCPcopy Create free account
hub / github.com/assaultcube/AC / loopvrev

Function loopvrev

source/src/worldlight.cpp:343–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 if(dlights.empty()) return;
342 const block *area = NULL;
343 loopvrev(dlights)
344 {
345 const dlight &d = dlights[i];
346 if(area)
347 {
348 if(insidearea(*area, *d.area)) continue;
349 if(!insidearea(*d.area, *area)) blockpaste(*area);
350 }
351 area = d.area;
352 }
353 if(area) blockpaste(*area);
354}
355

Callers

nothing calls this directly

Calls 2

insideareaFunction · 0.85
blockpasteFunction · 0.85

Tested by

no test coverage detected