- fixed: Trace considered any water surface a hit if nothing else was found.

This commit is contained in:
Christoph Oelckers 2016-04-18 18:31:19 +02:00
parent 5e822fd60b
commit d2735d7632

View file

@ -308,6 +308,7 @@ void FTraceInfo::Setup3DFloors()
{
Results->Crossed3DWater = rover;
Results->Crossed3DWaterPos = Results->HitPos;
Results->Distance = 0;
}
}
@ -444,6 +445,7 @@ bool FTraceInfo::LineCheck(intercept_t *in, double dist, DVector3 hit)
{
Results->CrossedWater = &sectors[CurSector->sectornum];
Results->CrossedWaterPos = Results->HitPos;
Results->Distance = 0;
}
}
@ -747,6 +749,7 @@ bool FTraceInfo::TraceTraverse (int ptflags)
{
Results->Crossed3DWater = rover;
Results->Crossed3DWaterPos = Results->HitPos;
Results->Distance = 0;
}
}
}
@ -835,6 +838,7 @@ bool FTraceInfo::TraceTraverse (int ptflags)
{
Results->CrossedWater = &sectors[CurSector->sectornum];
Results->CrossedWaterPos = Results->HitPos;
Results->Distance = 0;
}
Results = res;
}