Closed X-TheDark closed 8 years ago
Hero
change = changed
Whoops. Fix'd.
Also, it's funny how much I commented, deliberated and explained a one-line change...guess I'd really like to know why this check was there in the first place.
Also, it's funny how much I commented, deliberated and explained a one-line change...guess I'd really like to know why this check was there in the first place.
Its a simple answer, BLAME TACO.
Refer to issues #883 , #910 , #1198 .
Intent of your Pull Request
Light bulbs now properly update lighting. Cause of issue: When lightbulb is removed from fixture, the "light" (light datum) datum's variable radius is set to 4 in SetLuminosity (since that's the LIGHTING_MIN_RADIUS)
and since the brightness of the light bulb fixture is 4, it doesn't pass the
light.radius != brightness
part ofIn fact, I'm not sure what this check is set to accomplish, exactly, as update() is only called when you do something to the light fixture (turn it on/off, take out/put in lightbulb) therefore I just removed the check entirely, as there's no reason for this check to be done, really (!light part is covered in SetLuminosity proc already and I have no idea why you need the
light.radius != brightness
check since both of those are hardcoded values (sort of)).Changelog
:cl: X-TheDark bugfix: Light bulb fixtures now properly update the surrounding tile brightness when their state is changed (put in lightbulb/turn fixture on). /:cl: