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

View file

@ -637,7 +637,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;