From df63dd288a18f6b71b382e2f842888a9354581bd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 13 Mar 2016 21:55:47 +0100 Subject: [PATCH] - fixed: Visual-only portals could initiate a teleport. --- src/p_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index ca8b7b751..4a7315328 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -997,7 +997,7 @@ bool PIT_CheckLine(FMultiBlockLinesIterator &mit, FMultiBlockLinesIterator::Chec spec.oldrefpos = tm.thing->PosRelative(ld); spechit.Push(spec); } - if (ld->portalindex != UINT_MAX) + if (ld->isLinePortal()) { spec.line = ld; spec.refpos = cres.position;