From d2735d763213f8858bcdb33e7d804ce782035886 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 18 Apr 2016 18:31:19 +0200 Subject: [PATCH] - fixed: Trace considered any water surface a hit if nothing else was found. --- src/p_trace.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_trace.cpp b/src/p_trace.cpp index 0e11e29a6..db78fa5e2 100644 --- a/src/p_trace.cpp +++ b/src/p_trace.cpp @@ -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 = §ors[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 = §ors[CurSector->sectornum]; Results->CrossedWaterPos = Results->HitPos; + Results->Distance = 0; } Results = res; }