From 9e07babde58f4ac3de48213d07e69aa680e64eb4 Mon Sep 17 00:00:00 2001 From: AntiBlueQuirk Date: Mon, 2 Oct 2017 09:07:47 -0500 Subject: [PATCH] Fixed flags when demoting interactive portals Interactive portals demoted to visual due to not having a back-sector would not have their interactive flag properly cleared. --- src/portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portal.cpp b/src/portal.cpp index b1edad7f95d..9978d328416 100644 --- a/src/portal.cpp +++ b/src/portal.cpp @@ -363,7 +363,7 @@ void P_UpdatePortal(FLinePortal *port) { Printf(TEXTCOLOR_RED "Warning: Traversable portals must have a back-sector and empty space behind them (or be on a polyobject)! Changing line %d to visual-portal!\n", port->mOrigin->Index()); port->mType = PORTT_VISUAL; - port->mDefFlags &= ~(PORTF_PASSABLE | PORTF_SOUNDTRAVERSE); + port->mDefFlags &= ~(PORTF_PASSABLE | PORTF_SOUNDTRAVERSE | PORTF_INTERACTIVE); } if (port->mDestination == nullptr)