mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Fix for LineTrace not setting its starting sector based on its offset.
This commit is contained in:
parent
0cbb08ce84
commit
2628dabc31
1 changed files with 1 additions and 1 deletions
|
@ -4803,7 +4803,7 @@ int P_LineTrace(AActor *t1, DAngle angle, double distance,
|
||||||
if ( flags & TRF_NOSKY ) tflags |= TRACE_NoSky;
|
if ( flags & TRF_NOSKY ) tflags |= TRACE_NoSky;
|
||||||
|
|
||||||
// Do trace
|
// Do trace
|
||||||
bool ret = Trace(startpos, t1->Sector, direction, distance, aflags, lflags, t1, trace, tflags, CheckLineTrace, &TData);
|
bool ret = Trace(startpos, t1->Level->PointInSector(startpos), direction, distance, aflags, lflags, t1, trace, tflags, CheckLineTrace, &TData);
|
||||||
if ( outdata )
|
if ( outdata )
|
||||||
{
|
{
|
||||||
memset(outdata,0,sizeof(*outdata));
|
memset(outdata,0,sizeof(*outdata));
|
||||||
|
|
Loading…
Reference in a new issue