Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bugs with Line_PortalSetTarget and added more portal geometry warnings #1

Closed
wants to merge 1 commit into from

Conversation

AntiBlueQuirk
Copy link
Owner

  • A bug exists where portals that have been deactivated with Line_PortalSetTarget cannot be reactivated, even if given a valid target.
  • Another bug exists where portals that were created in an inactive state (using a target line tag of 0) could never be activated. (Even with the above bugfix.)
  • Linked portals that have been demoted to teleport portals because they do not have a return portal now emit a warning.
  • Portals that are supposed to be traversable, but do not have a back-sector now demote to visual portals and emit a warning, because nothing could ever possibly traverse them anyway.

I see now that there's another pull request (ZDoom#372) to fix the first bug in a slightly different way. I'm not sure which change is more appropriate, since I'm barely familiar with the portal code, but this is my take on it. It looks like the mFlags member is the main method of tracking whether portals are active, so it looks like it should always updated in the ChangePortalLine function.

I updated Gez's original portal test map from the original portal thread. I got everything working except for the switchable portals, which is what caused me to stumble on these bugs. Here's the updated version for testing: zdoomx_test0_upd.zip

…arnings

- A bug exists where portals that have been deactivated with Line_PortalSetTarget cannot be reactivated, even if given a valid target.
- Another bug exists where portals that were created in an inactive state (using a target line tag of 0) could never be activated. (Even with the above bugfix.)
- Linked portals that have been demoted to teleport portals because they do not have a return portal now emit a warning.
- Portals that are supposed to be traversable, but do not have back-sector now demote to visual portals and emit a warning, because nothing could ever possibly traverse them anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant