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.
This commit is contained in:
AntiBlueQuirk 2017-10-02 09:07:47 -05:00 committed by Christoph Oelckers
parent 4884a1f785
commit 9e07babde5

View file

@ -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()); 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->mType = PORTT_VISUAL;
port->mDefFlags &= ~(PORTF_PASSABLE | PORTF_SOUNDTRAVERSE); port->mDefFlags &= ~(PORTF_PASSABLE | PORTF_SOUNDTRAVERSE | PORTF_INTERACTIVE);
} }
if (port->mDestination == nullptr) if (port->mDestination == nullptr)