From 036deb1ae63841b7091cac6e4dbb5feb851ce6e1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 24 Jan 2009 00:04:58 +0000 Subject: [PATCH] - Fixed: With COMPAT_TRACE switched on linedef actions on lines having the same sector on both sides were not triggered. SVN r1362 (trunk) --- docs/rh-log.txt | 4 ++++ src/p_trace.cpp | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 92bdaf8e5..485ff6ab0 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,7 @@ +January 24, 2009 (Changes by Graf Zahl) +- Fixed: With COMPAT_TRACE switched on linedef actions on lines having + the same sector on both sides were not triggered. + January 18, 2009 (Changes by Graf Zahl) - Added a CopyInfo function to FTexture that contains all code required to clone a texture. Used for creating warping textures. diff --git a/src/p_trace.cpp b/src/p_trace.cpp index 11ecf2c90..c2f94d8c3 100644 --- a/src/p_trace.cpp +++ b/src/p_trace.cpp @@ -290,6 +290,15 @@ bool FTraceInfo::TraceTraverse (int ptflags) // This is the way Doom.exe did it and some WADs (e.g. Alien Vendetta MAP15 need it. if (i_compatflags & COMPATF_TRACE && in->d.line->backsector == in->d.line->frontsector) { + // We must check special activation here because the code below is never reached. + if (TraceFlags & TRACE_PCross) + { + P_ActivateLine (in->d.line, IgnoreThis, lineside, SPAC_PCross); + } + if (TraceFlags & TRACE_Impact) + { + P_ActivateLine (in->d.line, IgnoreThis, lineside, SPAC_Impact); + } continue; } }