Fix for LineTrace not setting its starting sector based on its offset.

This commit is contained in:
Marisa Kirisame 2019-09-14 23:25:17 +02:00 committed by drfrag
parent 400444f7df
commit ca35bdc33c

View file

@ -4814,7 +4814,7 @@ int P_LineTrace(AActor *t1, DAngle angle, double distance,
if ( flags & TRF_NOSKY ) tflags |= TRACE_NoSky;
// Do trace
bool ret = Trace(startpos, t1->Sector, direction, distance, aflags, lflags, t1, trace, tflags, CheckLineTrace, &TData);
bool ret = Trace(startpos, P_PointInSector(startpos), direction, distance, aflags, lflags, t1, trace, tflags, CheckLineTrace, &TData);
if ( outdata )
{
memset(outdata,0,sizeof(*outdata));