Refactor|Map Renderer: Dismantled R_MiddleMaterialCoversOpening()

This logic should not be implemented at such a high level and with
this kind of API -- it assumes too much and is not generic enough.
Also, usually the caller already knows the range that it wants to
determine "coveredness" for.