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 broadcast module unloading #943

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Fix broadcast module unloading #943

merged 1 commit into from
Nov 30, 2021

Conversation

Pugzy
Copy link
Contributor

@Pugzy Pugzy commented Nov 28, 2021

Fixes #938 where reloading a map with tips/alerts would cause them to no longer display.

This was introduced in 529ab16#diff-02f93e0776e398491425d5c04f3cd44595d292c296dae08e0412e890d524c994.

The issue identified above is caused by the unload of the BroadcastMatchModule clearing the map of broadcasts which is actually in the BroadcastModule (MapModule) and not a locally created/used variable. When the map is replayed the map module is reused but no longer contains data. On disable already stops running countdowns so the unload doesn't need to do any extra clean up.

The match module could work on a copy of the data but it isn't mutated anyway (other than the current clearing of it 😆).

Signed-off-by: Pugzy [email protected]

@Pugzy Pugzy requested a review from Electroid as a code owner November 28, 2021 11:49
@Electroid Electroid merged commit 19e99dc into PGMDev:dev Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Broadcast module does not work after map is reloaded
2 participants