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

Fix maps with multiple sky_cameras not using the correct sky_camera after loading a save #301

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Blixibon
Copy link
Member

This PR fixes maps not using the correct sky_camera after loading a save. This issue occurred because the active sky_camera is currently based on a static handle variable, which doesn't save with the game. This PR fixes this by always associating the active sky_camera with the "Master" spawnflag, which does restore after loading a save. Then, when a save is loaded, the sky_camera with the "Master" spawnflag is assigned as the active skybox.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

Copy link

@1upD 1upD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants