Copied P_CrossBSPNode from prboom+

and some tidying...