If you use the same instance of ROT.Lighting with different sets of lights or just want to switch to another set of light, there's no function to clear all lights. This pull request solves that by wrapping for this._lights = {}; in a function which provides a more intuitive interface to clear all lights.
If you use the same instance of
ROT.Lighting
with different sets of lights or just want to switch to another set of light, there's no function to clear all lights. This pull request solves that by wrapping forthis._lights = {};
in a function which provides a more intuitive interface to clear all lights.