FOF wall rendering fixes and cleanup
Some cleaning up I did a month ago, while trying to get to the bottom of one or two unexplained software renderer crashes that apparently involve FOF walls. I kind of forgot about it though, nor did I fix the crashes (yet).
Not especially urgent to merge in, but it makes the relevant code a bit easier to read in places.