Only call additional LineCheck if there are 3D floors

(cherry picked from commit 3129840a04)
This commit is contained in:
ZZYZX 2018-04-25 19:58:17 +03:00 committed by drfrag666
parent 2c9193453a
commit 407cdc9683

View file

@ -639,7 +639,7 @@ cont:
case TRACE_Skip:
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);
break;