This is probably an issue with my C++ code, rather than the game, but can anyone speculate on why I'm getting these lighting problems in rough terrain? I'm not sure where to begin on this.
The screenshot is from a new world, without any mods, using my mapgen.
If anyone wants to look at the code, it's here. Most of the form was taken from the version 7 mapgen (which doesn't have this problem).