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

@ -1,2 +1,2 @@
[default]
SWWM_MODVER="\chSWWM \cwGZ\c- r467 (Sat 8 Aug 16:29:50 CEST 2020)";
SWWM_MODVER="\chSWWM \cwGZ\c- r468 (Sat 8 Aug 17:03:58 CEST 2020)";

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);