Blocking checks for mirror interaction (forgot about them).
This commit is contained in:
parent
8965884358
commit
3aaa77f9e1
2 changed files with 10 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r733 \cu(Thu 19 Jan 10:13:21 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r733 \cu(2023-01-19 10:13:21)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r734 \cu(Thu 19 Jan 10:25:09 CET 2023)\c-";
|
||||
SWWM_SHORTVER="\cw1.3pre r734 \cu(2023-01-19 10:25:09)\c-";
|
||||
|
|
|
|||
|
|
@ -53,9 +53,17 @@ Class SWWMMirrorTracer : LineTracer
|
|||
{
|
||||
if ( Results.HitType == TRACE_HitWall )
|
||||
{
|
||||
// did we find a mirror?
|
||||
if ( !Results.HitLine.sidedef[1] && (Results.HitLine.special == Line_Mirror) )
|
||||
return TRACE_Stop;
|
||||
// lower/upper will block, as well as one-sided lines that aren't mirrors
|
||||
if ( !Results.HitLine.sidedef[1] || !(Results.Tier == TIER_Middle) )
|
||||
return TRACE_Abort;
|
||||
}
|
||||
// obviously, floors and ceilings block the view as well
|
||||
// again, a shame we can't check if they, too, are mirrors
|
||||
if ( (Results.HitType == TRACE_HitFloor) || (Results.HitType == TRACE_HitCeiling) )
|
||||
return TRACE_Abort;
|
||||
return TRACE_Skip;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue