mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- fixed: Trace considered any water surface a hit if nothing else was found.
This commit is contained in:
parent
5e822fd60b
commit
d2735d7632
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue