I've been trying to use the
lightmanager from the French wiki and everything works fine unless my walls are perfectly horizontal or vertical. I'm guessing it's a divide by zero or similar mathematical error but I cannot seem to find it.
I've uploaded my source and compiled project
Here so everybody can see the problem. The only change to the source is that unnecessary lines have been commented out.
The problem is with the lower of the two walls.