Replaced the algorithm used in XS_GetPlane() to determine an extremal texture height of all the wall surfaces in a given sector. The new algorithm makes use of P_Iteratep() and unlike the old algorithm; it avoids the need for a static working buffer (which it never checked the bounds of, meaning that if a sector was made up of more than 128 linedefs and each had a different texture; it would result in writing beyond the end of the working buffer).
Replaced the algorithm used in XS_GetPlane() to determine an extremal texture height of all the wall surfaces in a given sector. The new algorithm makes use of P_Iteratep() and unlike the old algorithm; it avoids the need for a static working buffer (which it never checked the bounds of, meaning that if a sector was made up of more than 128 linedefs and each had a different texture; it would result in writing beyond the end of the working buffer).