Oops, forgot to account for one-sided lines

This commit is contained in:
Mari the Deer 2020-08-08 17:03:58 +02:00
commit cb92ff3b3b
2 changed files with 2 additions and 1 deletions

View file

@ -895,6 +895,7 @@ Class UseLineTracer : LineTracer
{
if ( u.hitpart != TIER_MIDDLE ) return true; // lower/upper/ffloor
Line l = u.HitLine;
if ( !l.sidedef[1] ) return true; // onesided line
Side s = l.sidedef[u.hitside];
if ( s.GetTexture(1).IsNull() ) return false; // no midtex
double ofs = s.GetTextureYOffset(1);