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

Re-run xeh preInit after terrain switch in Threeden #563

Merged
merged 1 commit into from
Dec 27, 2016

Conversation

PabstMirror
Copy link
Contributor

@PabstMirror PabstMirror commented Dec 3, 2016

Switching terrains in 3den will reset missionNamespace.
(either creating a new mission on a new map or loading a save on a new map)

This breaks addons that count on pre-init functions being available in 3den as well as CBA Settings.

On first load into VR
Check var cba_settings is true and cba settings open's normaly.

Switch maps to Stratis:
Check var cba_settings is nil and cba settings opens weird and does not function:

One minor downside to this fix is it stacks a new event handler each run of preInit.
It shouldn't matter because it checks ISPROCESSED, but there might be a better way to do this?

Edit: this is what cba settings opens as after terrain switch
20161203131303_1

@commy2 commy2 added the Bug Fix label Dec 3, 2016
@commy2 commy2 added this to the 3.2 milestone Dec 3, 2016
@Killswitch00 Killswitch00 merged commit ea6c0f7 into master Dec 27, 2016
@Killswitch00 Killswitch00 deleted the 3denPreInit branch January 4, 2017 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants