MCPcopy Create free account
hub / github.com/DFHack/dfhack / combine

Method combine

plugins/rendermax/renderer_light.cpp:362–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 }
361}
362void lightSource::combine(const lightSource& other)
363{
364 power=blend(power,other.power);
365 radius=std::max(other.radius,radius);//hack... but who cares
366}
367bool lightingEngineViewscreen::addLight(int tileId,const lightSource& light)
368{
369 bool wasLight=lights[tileId].radius>0;

Callers 1

addLightMethod · 0.80

Calls 2

blendFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected