mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 12:30:32 +00:00
Fix for LineTrace not setting its starting sector based on its offset.
This commit is contained in:
parent
400444f7df
commit
ca35bdc33c
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue