- fixed: Hitscan traces crossing a two sided line right at the height of the back sector's floor or ceiling must not be considered a hit.

This commit is contained in:
Christoph Oelckers 2014-10-25 10:44:00 +02:00
parent 8edace83c5
commit 0d3908a4f3

View file

@ -366,7 +366,7 @@ bool FTraceInfo::TraceTraverse (int ptflags)
Results->HitTexture = CurSector->GetTexture(sector_t::ceiling);
}
else if (entersector == NULL ||
hitz <= bf || hitz >= bc ||
hitz < bf || hitz > bc ||
in->d.line->flags & WallMask)
{ // hit the wall
Results->HitType = TRACE_HitWall;