Re-run xeh preInit after terrain switch in Threeden #563
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
istrue
and cba settings open's normaly.Switch maps to Stratis:
Check var
cba_settings
isnil
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