Skip to content

Commit

Permalink
Fixed flags when demoting interactive portals
Browse files Browse the repository at this point in the history
Interactive portals demoted to visual due to not having a back-sector would not have their interactive flag properly cleared.
  • Loading branch information
AntiBlueQuirk authored and coelckers committed Oct 3, 2017
1 parent 4884a1f commit 9e07bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/portal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e07bab

Please sign in to comment.