MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / resetLight

Method resetLight

src/Savegame/Tile.cpp:402–406  ·  view source on GitHub ↗

* Reset the light amount on the tile. This is done before a light level recalculation. * @param layer Light is separated in 3 layers: Ambient, Static and Dynamic. */

Source from the content-addressed store, hash-verified

400 * @param layer Light is separated in 3 layers: Ambient, Static and Dynamic.
401 */
402void Tile::resetLight(int layer)
403{
404 _light[layer] = 0;
405 _lastLight[layer] = _light[layer];
406}
407
408/**
409 * Add the light amount on the tile. Only add light if the current light is lower.

Callers 3

calculateSunShadingMethod · 0.80
calculateUnitLightingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected