Only call additional LineCheck if there are 3D floors

This commit is contained in:
ZZYZX 2018-04-25 19:58:17 +03:00 committed by Christoph Oelckers
parent da089b09b1
commit 3129840a04
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ cont:
case TRACE_Skip: case TRACE_Skip:
Results->HitType = TRACE_HitNone; Results->HitType = TRACE_HitNone;
if (!special3dpass && (TraceFlags & TRACE_3DCallback)) if (!special3dpass && (TraceFlags & TRACE_3DCallback) && entersector->e->XFloor.ffloors.Size())
return LineCheck(in, dist, hit, true); return LineCheck(in, dist, hit, true);
break; break;