- fixed: The result condition of a hitscan subtrace was never checked.

This commit is contained in:
Christoph Oelckers 2016-03-08 11:55:40 +01:00
parent f852ead99a
commit 4ebdcb7b6d

View file

@ -842,7 +842,9 @@ bool FTraceInfo::TraceTraverse (int ptflags)
} }
else if (in->isaline) else if (in->isaline)
{ {
if (!LineCheck(in)) break; bool res = LineCheck(in);
if (aimdir == INT_MAX) return res; // signal for immediate abort
if (!res) break;
} }
else if ((in->d.thing->flags & ActorMask) && in->d.thing != IgnoreThis) else if ((in->d.thing->flags & ActorMask) && in->d.thing != IgnoreThis)
{ {