From e7bbca8e3367cd869a227fd054e30e7d5a440f4f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 4 Dec 2010 08:53:13 +0000 Subject: [PATCH] - expanded compat_trace flag to apply also to sight checks. - Set trace compatibility for Real World MAP11. SVN r3021 (trunk) --- src/p_sight.cpp | 5 +++++ wadsrc/static/compatibility.txt | 1 + 2 files changed, 6 insertions(+) diff --git a/src/p_sight.cpp b/src/p_sight.cpp index 4324ebc0a..359b5d4d3 100644 --- a/src/p_sight.cpp +++ b/src/p_sight.cpp @@ -102,6 +102,11 @@ bool SightCheck::PTR_SightTraverse (intercept_t *in) // // crosses a two sided line // + + // ignore self referencing sectors if COMPAT_TRACE is on + if ((i_compatflags & COMPATF_TRACE) && li->frontsector == li->backsector) + return true; + fixed_t trX=trace.x + FixedMul (trace.dx, in->frac); fixed_t trY=trace.y + FixedMul (trace.dy, in->frac); P_LineOpening (open, NULL, li, trX, trY); diff --git a/wadsrc/static/compatibility.txt b/wadsrc/static/compatibility.txt index c3a4404aa..14cda7966 100644 --- a/wadsrc/static/compatibility.txt +++ b/wadsrc/static/compatibility.txt @@ -53,6 +53,7 @@ F84AB4557464A383E93F37CD3A82AC48 // MM2 map03 } 2FE901F659A16E58D7BCD7C30021C238 // AV map15 +74AF92E96FE10D039D31C1F6526D7D7C // Real World map11 { trace }