Fixes #1093 (closed) by using the sector's ceiling slope if the middle texture is aligned to the ceiling (the default), and the sector's floor slope if the middle texture is aligned to the floor.