Skip to content

Fix event priority mismatch in LoadGlobalData. - #460

Merged
JeodC merged 1 commit into
HarbourMasters:develop-splitrockfrom
JeodC:fix-sns
Aug 14, 2026
Merged

Fix event priority mismatch in LoadGlobalData.#460
JeodC merged 1 commit into
HarbourMasters:develop-splitrockfrom
JeodC:fix-sns

Conversation

@JeodC

@JeodC JeodC commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Also fix SNS to use OnGameStart; the event priority mismatch had broken persistent bottles bonus.

// gameFile_load fires OnGameLoad. Restore them from global.json here before
// other OnGameLoad listeners read them.
REGISTER_LISTENER(OnGameLoad, EVENT_PRIORITY_HIGH, [](IEvent* event) { LoadGlobalData(); });
REGISTER_LISTENER(OnGameLoad, EVENT_PRIORITY_LOW, [](IEvent* event) { LoadGlobalData(); });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this meant to be low, or is this a side effect of the inverted priority order you were talking about? If the latter, a note should be made to change it back when we fix that in LUS.

@JeodC JeodC Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Side effect. I would wait until we do LUS 2.0 migration to fix it though.

@JeodC
JeodC merged commit d89452c into HarbourMasters:develop-splitrock Aug 14, 2026
6 checks passed
@JeodC
JeodC deleted the fix-sns branch August 14, 2026 13:11
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